...
|
...
|
@@ -165,7 +165,7 @@ class AdminLightOrderController extends AdminBaseController |
|
|
->join('temple t','l.temple_id=t.id')
|
|
|
->join('temple_area ta','l.area_id=ta.id')
|
|
|
->where('lo.id',$id)
|
|
|
->field('lo.*,l.*,u.mobile,u.user_name,t.name as tname,ta.name as taname,lo.name as loname')
|
|
|
->field('lo.*,l.*,u.mobile,u.user_name,t.name as tname,ta.name as taname,lo.name as loname,lo.id as loid')
|
|
|
->find();
|
|
|
|
|
|
$address = Db::name('temple')->where($where)->field('address')->distinct('true')->select();
|
...
|
...
|
@@ -195,13 +195,10 @@ class AdminLightOrderController extends AdminBaseController |
|
|
public function editPost()
|
|
|
{
|
|
|
$param = $this->request->param();
|
|
|
var_dump($param['content']);
|
|
|
var_dump($param['id']);
|
|
|
exit();
|
|
|
$param['create_time'] = time();
|
|
|
Db::name('light_order')->where('id', $param['id'])->update($param);
|
|
|
// $lightService= new service\LightService();
|
|
|
// $lightService->lightChange($param['light_id'],'01','01',$param['name']);
|
|
|
$lightService= new service\LightService();
|
|
|
$lightService->lightChange($param['light_id'],'01','01',$param['name'],$param['content']);
|
|
|
$this->success('编辑成功');
|
|
|
}
|
|
|
|
...
|
...
|
|