2
This commit is contained in:
parent
8dcf90368f
commit
3bda1ae8f7
@ -43,11 +43,6 @@ class DoctorBankCard extends Model
|
||||
*/
|
||||
protected array $fillable = ['bank_card_id', 'doctor_id', 'bank_id', 'bank_card_code', 'bank_card_code_mask', 'account_name', 'card_id_number', 'account_phone', 'province_id', 'province', 'city_id', 'city', 'county_id', 'county', 'created_at', 'updated_at'];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
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";
|
||||
|
||||
/**
|
||||
|
||||
@ -39,11 +39,6 @@ class UserDoctorInfo extends Model
|
||||
*/
|
||||
protected array $fillable = ['doctor_info_id', 'doctor_id', 'card_type', 'card_name', 'card_name_mask', 'card_num', 'card_num_mask', 'license_cert', 'qualification_cert', 'qualification_cert_num', 'work_cert', 'multi_point_images', 'sign_image', 'created_at', 'updated_at'];
|
||||
|
||||
/**
|
||||
* The attributes that should be cast to native types.
|
||||
*/
|
||||
protected array $casts = ['doctor_info_id' => 'integer', 'doctor_id' => 'integer', 'card_type' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime'];
|
||||
|
||||
protected string $primaryKey = "doctor_info_id";
|
||||
|
||||
/**
|
||||
|
||||
@ -279,7 +279,7 @@ class UserDoctorService extends BaseService
|
||||
$params['name'] = $user_doctor_info['card_name'];
|
||||
$params['idCardNo'] = $user_doctor_info['card_num'];
|
||||
$res = $BankCard->checkBankCard($params);
|
||||
if (!$res){
|
||||
if (!empty($res)){
|
||||
return fail(HttpEnumCode::HTTP_ERROR,$res);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user