修正返回数据问题

This commit is contained in:
wucongxing 2023-02-25 10:14:10 +08:00
parent 0a9ee1740e
commit 0b5ac0a225

View File

@ -46,7 +46,7 @@ class DoctorBankCard extends Model
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['bank_card_id' => 'integer', 'doctor_id' => 'integer', 'bank_id' => 'integer', 'province_id' => 'integer', 'city_id' => 'integer', 'county_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
protected array $casts = ['bank_card_id' => 'string', 'doctor_id' => 'string', 'bank_id' => 'string', 'province_id' => 'integer', 'city_id' => 'integer', 'county_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
protected string $primaryKey = "bank_card_id";