正在显示
6 个修改的文件
包含
6 行增加
和
25 行删除
@@ -330,7 +330,7 @@ class Api extends Controller | @@ -330,7 +330,7 @@ class Api extends Controller | ||
330 | $access_token = $access_tokens['access_token']; | 330 | $access_token = $access_tokens['access_token']; |
331 | $template = array( | 331 | $template = array( |
332 | 'touser' => $openid, // | 332 | 'touser' => $openid, // |
333 | - 'template_id' => 'zQaLnhEOQxdGOKJlDUAfEoNY4NTmNWy9a9vYzkZjGn8', //模板消息id 必须修改 | 333 | + 'template_id' => 'zQaLnhEOQxdGOKJlDUAfEsAstMsz4LzJA0NSSAtqu2A', //模板消息id 必须修改 |
334 | 'url' => $tourl, //点击链接 | 334 | 'url' => $tourl, //点击链接 |
335 | "miniprogram" => [], | 335 | "miniprogram" => [], |
336 | 'topcolor' => "#173177", | 336 | 'topcolor' => "#173177", |
@@ -213,7 +213,7 @@ function sendAstuWxMsgToAgent($info, $openid, $tourl, $appid, $secret, $ywt_appi | @@ -213,7 +213,7 @@ function sendAstuWxMsgToAgent($info, $openid, $tourl, $appid, $secret, $ywt_appi | ||
213 | 213 | ||
214 | $template = array( | 214 | $template = array( |
215 | 'touser' => $openid, // | 215 | 'touser' => $openid, // |
216 | - 'template_id' => 'zQaLnhEOQxdGOKJlDUAfEoNY4NTmNWy9a9vYzkZjGn8', //模板消息id 必须修改 | 216 | + 'template_id' => 'zQaLnhEOQxdGOKJlDUAfEsAstMsz4LzJA0NSSAtqu2A', //模板消息id 必须修改 |
217 | 'url' => $tourl, //点击链接 | 217 | 'url' => $tourl, //点击链接 |
218 | "miniprogram" => [ | 218 | "miniprogram" => [ |
219 | "appid" => $ywt_appid, | 219 | "appid" => $ywt_appid, |
@@ -89,12 +89,11 @@ class Car extends Backend | @@ -89,12 +89,11 @@ class Car extends Backend | ||
89 | if ($this->request->request('keyField')) { | 89 | if ($this->request->request('keyField')) { |
90 | $keyField=$this->request->request(); | 90 | $keyField=$this->request->request(); |
91 | $res=$this->model | 91 | $res=$this->model |
92 | - ->where("(license_plate like %".$keyField['q_word'][0]."% or name like %".$keyField['q_word'][0]."%) ") | 92 | + ->where("(license_plate like '%".$keyField['q_word'][0]."%' or name like '%".$keyField['q_word'][0]."%') ") |
93 | ->alias("a") | 93 | ->alias("a") |
94 | ->join("driver b","a.driver_id=b.id") | 94 | ->join("driver b","a.driver_id=b.id") |
95 | ->field("b.id,name,license_plate") | 95 | ->field("b.id,name,license_plate") |
96 | ->select(); | 96 | ->select(); |
97 | - print_r($res);return; | ||
98 | $count=$this->model | 97 | $count=$this->model |
99 | ->alias("a") | 98 | ->alias("a") |
100 | ->join("driver b","a.driver_id=b.id") | 99 | ->join("driver b","a.driver_id=b.id") |
@@ -4,12 +4,7 @@ | @@ -4,12 +4,7 @@ | ||
4 | <div class="form-group"> | 4 | <div class="form-group"> |
5 | <label class="control-label col-xs-12 col-sm-2">选择司机:</label> | 5 | <label class="control-label col-xs-12 col-sm-2">选择司机:</label> |
6 | <div class="col-xs-12 col-sm-8"> | 6 | <div class="col-xs-12 col-sm-8"> |
7 | - <select id="c-intended_driver_id" class="form-control selectpicker" name="row[intended_driver_id]"> | ||
8 | - {foreach name="row" item="vo"} | ||
9 | - <option value="{$vo.id}" {in name="key" value="$vo.id"}selected{/in}>{$vo.name}-{$vo.license_plate}</option> | ||
10 | - {/foreach} | ||
11 | - </select> | ||
12 | - | 7 | + <input id="c-intended_driver_id" data-source="car/select_driver" data-format-item="{name} - {license_plate}" class="form-control selectpage" name="row[intended_driver_id]" type="text" value=""> |
13 | </div> | 8 | </div> |
14 | </div> | 9 | </div> |
15 | 10 |
1 | <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> | 1 | <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> |
2 | - | ||
3 | - | ||
4 | - <div class="form-group"> | ||
5 | - <label class="control-label col-xs-12 col-sm-2">选择司机:</label> | ||
6 | - <div class="col-xs-12 col-sm-8"> | ||
7 | - <select id="c-intended_driver_id" class="form-control selectpicker" name="row[intended_driver_id]"> | ||
8 | - {foreach name="row" item="vo"} | ||
9 | - <option value="{$vo.id}" {in name="key" value="$vo.id"}selected{/in}>{$vo.name}-{$vo.license_plate}</option> | ||
10 | - {/foreach} | ||
11 | - </select> | ||
12 | - | ||
13 | - </div> | ||
14 | - </div> | ||
15 | <div class="form-group"> | 2 | <div class="form-group"> |
16 | <label class="control-label col-xs-12 col-sm-2">{:__('Driver_id')}:</label> | 3 | <label class="control-label col-xs-12 col-sm-2">{:__('Driver_id')}:</label> |
17 | <div class="col-xs-12 col-sm-8"> | 4 | <div class="col-xs-12 col-sm-8"> |
18 | - <input id="c-driver_id" data-source="car/select_driver" data-format-item="{name} - {license_plate}" class="form-control selectpage" name="row[driver_id]" type="text" value=""> | 5 | + <input id="c-intended_driver_id" data-source="car/select_driver" data-format-item="{name} - {license_plate}" class="form-control selectpage" name="row[intended_driver_id]" type="text" value=""> |
19 | </div> | 6 | </div> |
20 | </div> | 7 | </div> |
21 | 8 |
@@ -243,7 +243,7 @@ class Index extends Api | @@ -243,7 +243,7 @@ class Index extends Api | ||
243 | $access_token = $access_tokens['access_token']; | 243 | $access_token = $access_tokens['access_token']; |
244 | $template = array( | 244 | $template = array( |
245 | 'touser' => $openid, // | 245 | 'touser' => $openid, // |
246 | - 'template_id' => 'zQaLnhEOQxdGOKJlDUAfEoNY4NTmNWy9a9vYzkZjGn8', //模板消息id 必须修改 | 246 | + 'template_id' => 'zQaLnhEOQxdGOKJlDUAfEsAstMsz4LzJA0NSSAtqu2A', //模板消息id 必须修改 |
247 | 'url' => $tourl, //点击链接 | 247 | 'url' => $tourl, //点击链接 |
248 | "miniprogram" => [], | 248 | "miniprogram" => [], |
249 | 'topcolor' => "#173177", | 249 | 'topcolor' => "#173177", |
-
请 注册 或 登录 后发表评论