作者 lyh

gx

... ... @@ -257,7 +257,7 @@ class UserLoginLogic
'message'=>'当前微信已绑定其他微信,请解绑后再操作',
];
}else{
@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((int)$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);
... ...
... ... @@ -18,7 +18,7 @@ class User extends Base
protected $table = 'gl_project_user';
//自动维护create_at创建时间 updated_at修改时间
public $timestamps = true;
/**
* The attributes that should be cast.
*
... ...