更改下发token主键类型问题

This commit is contained in:
2023-04-08 13:59:10 +08:00
parent 21d483cc14
commit 67429ae31b
10 changed files with 73 additions and 36 deletions
-5
View File
@@ -40,11 +40,6 @@ class User extends Model
*/
protected array $fillable = ['user_id', 'user_name', 'user_account', 'mobile', 'sex', 'avatar', 'wx_mobile', 'user_password', 'salt', 'user_type', 'user_status', 'register_method', 'login_ip', 'last_login_at', 'created_at', 'updated_at'];
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['user_id' => 'string', 'user_type' => 'integer', 'user_status' => 'integer', 'register_method' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime', 'sex' => 'integer'];
protected string $primaryKey = "user_id";
/**