作者 赵彬吉

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

@@ -257,9 +257,10 @@ class UserLoginLogic @@ -257,9 +257,10 @@ class UserLoginLogic
257 'message'=>'当前微信已绑定其他微信,请解绑后再操作', 257 'message'=>'当前微信已绑定其他微信,请解绑后再操作',
258 ]; 258 ];
259 }else{ 259 }else{
260 - if(!empty($id)){  
261 - $this->model->edit(['wechat'=>$wechat],['id'=>$id]);  
262 - } 260 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($id, true) . PHP_EOL, FILE_APPEND);
  261 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($wechat, true) . PHP_EOL, FILE_APPEND);
  262 + $rs = $this->model->edit(['wechat'=>$wechat],['id'=>(int)$id]);
  263 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($rs, true) . PHP_EOL, FILE_APPEND);
263 $data = [ 264 $data = [
264 'code'=>2, 265 'code'=>2,
265 'message'=>'绑定成功', 266 'message'=>'绑定成功',