正在显示
2 个修改的文件
包含
4 行增加
和
7 行删除
@@ -165,7 +165,7 @@ class AdminLightOrderController extends AdminBaseController | @@ -165,7 +165,7 @@ class AdminLightOrderController extends AdminBaseController | ||
165 | ->join('temple t','l.temple_id=t.id') | 165 | ->join('temple t','l.temple_id=t.id') |
166 | ->join('temple_area ta','l.area_id=ta.id') | 166 | ->join('temple_area ta','l.area_id=ta.id') |
167 | ->where('lo.id',$id) | 167 | ->where('lo.id',$id) |
168 | - ->field('lo.*,l.*,u.mobile,u.user_name,t.name as tname,ta.name as taname,lo.name as loname') | 168 | + ->field('lo.*,l.*,u.mobile,u.user_name,t.name as tname,ta.name as taname,lo.name as loname,lo.id as loid') |
169 | ->find(); | 169 | ->find(); |
170 | 170 | ||
171 | $address = Db::name('temple')->where($where)->field('address')->distinct('true')->select(); | 171 | $address = Db::name('temple')->where($where)->field('address')->distinct('true')->select(); |
@@ -195,13 +195,10 @@ class AdminLightOrderController extends AdminBaseController | @@ -195,13 +195,10 @@ class AdminLightOrderController extends AdminBaseController | ||
195 | public function editPost() | 195 | public function editPost() |
196 | { | 196 | { |
197 | $param = $this->request->param(); | 197 | $param = $this->request->param(); |
198 | - var_dump($param['content']); | ||
199 | - var_dump($param['id']); | ||
200 | - exit(); | ||
201 | $param['create_time'] = time(); | 198 | $param['create_time'] = time(); |
202 | Db::name('light_order')->where('id', $param['id'])->update($param); | 199 | Db::name('light_order')->where('id', $param['id'])->update($param); |
203 | -// $lightService= new service\LightService(); | ||
204 | -// $lightService->lightChange($param['light_id'],'01','01',$param['name']); | 200 | + $lightService= new service\LightService(); |
201 | + $lightService->lightChange($param['light_id'],'01','01',$param['name'],$param['content']); | ||
205 | $this->success('编辑成功'); | 202 | $this->success('编辑成功'); |
206 | } | 203 | } |
207 | 204 |
@@ -24,7 +24,7 @@ | @@ -24,7 +24,7 @@ | ||
24 | <tr> | 24 | <tr> |
25 | <th>订单编号<span class="form-required">*</span></th> | 25 | <th>订单编号<span class="form-required">*</span></th> |
26 | <td> | 26 | <td> |
27 | - <input value="{$list.id}" name="id" hidden> | 27 | + <input value="{$list.loid}" name="id" hidden> |
28 | <input class="form-control" type="text" name="order_sn" | 28 | <input class="form-control" type="text" name="order_sn" |
29 | id="order_sn" required value="{$list.order_sn}" disabled/> | 29 | id="order_sn" required value="{$list.order_sn}" disabled/> |
30 | </td> | 30 | </td> |
-
请 注册 或 登录 后发表评论