作者 赵彬吉

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

@@ -186,10 +186,10 @@ class LoginController extends BaseController @@ -186,10 +186,10 @@ class LoginController extends BaseController
186 $resMessage = $data['message']; 186 $resMessage = $data['message'];
187 }elseif($data['code'] == 1){ 187 }elseif($data['code'] == 1){
188 $resMessage = $data['message']; 188 $resMessage = $data['message'];
189 - $info = $data['data'];  
190 - Cache::add($arrayData['Ticket'],$info,300); 189 + Cache::add($arrayData['Ticket'],$data,300);
191 }else{ 190 }else{
192 $resMessage = $data['message']; 191 $resMessage = $data['message'];
  192 + Cache::add($arrayData['Ticket'],$data,300);
193 } 193 }
194 return "<xml> 194 return "<xml>
195 <ToUserName><![CDATA[$message->FromUserName]]></ToUserName> 195 <ToUserName><![CDATA[$message->FromUserName]]></ToUserName>
@@ -257,10 +257,7 @@ class UserLoginLogic @@ -257,10 +257,7 @@ class UserLoginLogic
257 'message'=>'当前微信已绑定其他微信,请解绑后再操作', 257 'message'=>'当前微信已绑定其他微信,请解绑后再操作',
258 ]; 258 ];
259 }else{ 259 }else{
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); 260 + $this->model->edit(['wechat'=>$wechat],['id'=>(int)$id]);
264 $data = [ 261 $data = [
265 'code'=>2, 262 'code'=>2,
266 'message'=>'绑定成功', 263 'message'=>'绑定成功',
@@ -18,26 +18,6 @@ class User extends Base @@ -18,26 +18,6 @@ class User extends Base
18 protected $table = 'gl_project_user'; 18 protected $table = 'gl_project_user';
19 //自动维护create_at创建时间 updated_at修改时间 19 //自动维护create_at创建时间 updated_at修改时间
20 public $timestamps = true; 20 public $timestamps = true;
21 - /**  
22 - * The attributes that are mass assignable.  
23 - *  
24 - * @var array<int, string>  
25 - */  
26 - protected $fillable = [  
27 -// 'name',  
28 - 'email',  
29 - 'password',  
30 - ];  
31 -  
32 - /**  
33 - * The attributes that should be hidden for serialization.  
34 - *  
35 - * @var array<int, string>  
36 - */  
37 - protected $hidden = [  
38 -// 'password',  
39 - 'remember_token',  
40 - ];  
41 21
42 /** 22 /**
43 * The attributes that should be cast. 23 * The attributes that should be cast.