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