...
|
...
|
@@ -14,6 +14,7 @@ use cmf\controller\WeChatBaseController; |
|
|
use think\Validate;
|
|
|
use cmf\controller\HomeBaseController;
|
|
|
use app\user\model\UserModel;
|
|
|
use app\admin\service;
|
|
|
use think\Db;
|
|
|
use EasyWeChat\Foundation\Application;
|
|
|
|
...
|
...
|
@@ -87,7 +88,11 @@ class UserController extends WeChatBaseController |
|
|
}else{
|
|
|
$param['avatar']=$user['avatar'];
|
|
|
}
|
|
|
$data=Db::name('light_order')->where('id',$param['order_id'])->find();
|
|
|
$re=Db::name('light_order')->where('id',$param['order_id'])->update(['name'=>$param['name'],'content'=>$param['content'],'avatar'=>$param['avatar']]);
|
|
|
|
|
|
$lightService= new service\LightService();
|
|
|
$lightService->lightChange($data['light_id'],'01','01',$param['name']);
|
|
|
if ($re){
|
|
|
return 1;
|
|
|
}else{
|
...
|
...
|
|