From 3bda1ae8f7d930bfb7d3fc3f9aa0e03b98c22497 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Fri, 17 Mar 2023 17:24:38 +0800 Subject: [PATCH] 2 --- app/Model/DoctorBankCard.php | 5 ----- app/Model/UserDoctorInfo.php | 5 ----- app/Services/UserDoctorService.php | 2 +- 3 files changed, 1 insertion(+), 11 deletions(-) diff --git a/app/Model/DoctorBankCard.php b/app/Model/DoctorBankCard.php index eb44b9c..f7773ce 100644 --- a/app/Model/DoctorBankCard.php +++ b/app/Model/DoctorBankCard.php @@ -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"; /** diff --git a/app/Model/UserDoctorInfo.php b/app/Model/UserDoctorInfo.php index 6765ee5..6463705 100644 --- a/app/Model/UserDoctorInfo.php +++ b/app/Model/UserDoctorInfo.php @@ -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"; /** diff --git a/app/Services/UserDoctorService.php b/app/Services/UserDoctorService.php index 1fd52a7..2055a13 100644 --- a/app/Services/UserDoctorService.php +++ b/app/Services/UserDoctorService.php @@ -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); }