From d44a591e84eb50f05c6ca220c561887af213024c Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Sat, 25 Feb 2023 10:24:32 +0800 Subject: [PATCH] 1 --- app/Model/Banner.php | 2 +- app/Model/BasicJob.php | 2 +- app/Model/BasicNation.php | 2 +- app/Model/CodeLog.php | 2 +- app/Model/Coupon.php | 2 +- app/Model/DiseaseClassExpertise.php | 2 +- app/Request/DoctorAccountRequest.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Model/Banner.php b/app/Model/Banner.php index 36a56b4..8f59cff 100644 --- a/app/Model/Banner.php +++ b/app/Model/Banner.php @@ -41,7 +41,7 @@ class Banner extends Model /** * The attributes that should be cast to native types. */ - protected array $casts = ['banner_id' => 'integer', 'app_type' => 'integer', 'client_type' => 'integer', 'banner_place' => 'integer', 'banner_status' => 'integer', 'open_with' => 'integer', 'banner_sort' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; + protected array $casts = ['banner_id' => 'string', 'app_type' => 'integer', 'client_type' => 'integer', 'banner_place' => 'integer', 'banner_status' => 'integer', 'open_with' => 'integer', 'banner_sort' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; protected string $primaryKey = "banner_id"; diff --git a/app/Model/BasicJob.php b/app/Model/BasicJob.php index d400ab9..58b9547 100644 --- a/app/Model/BasicJob.php +++ b/app/Model/BasicJob.php @@ -31,7 +31,7 @@ class BasicJob extends Model /** * The attributes that should be cast to native types. */ - protected array $casts = ['job_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; + protected array $casts = ['job_id' => 'string', 'created_at' => 'datetime', 'updated_at' => 'datetime']; protected string $primaryKey = "job_id"; diff --git a/app/Model/BasicNation.php b/app/Model/BasicNation.php index 0737682..eb07278 100644 --- a/app/Model/BasicNation.php +++ b/app/Model/BasicNation.php @@ -31,7 +31,7 @@ class BasicNation extends Model /** * The attributes that should be cast to native types. */ - protected array $casts = ['nation_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; + protected array $casts = ['nation_id' => 'string', 'created_at' => 'datetime', 'updated_at' => 'datetime']; protected string $primaryKey = "nation_id"; diff --git a/app/Model/CodeLog.php b/app/Model/CodeLog.php index 58949e8..b460349 100644 --- a/app/Model/CodeLog.php +++ b/app/Model/CodeLog.php @@ -37,7 +37,7 @@ class CodeLog extends Model /** * The attributes that should be cast to native types. */ - protected array $casts = ['code_log_id' => 'integer', 'type' => 'integer', 'status' => 'integer', 'scene' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; + protected array $casts = ['code_log_id' => 'string', 'type' => 'integer', 'status' => 'integer', 'scene' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; protected string $primaryKey = "code_log_id"; diff --git a/app/Model/Coupon.php b/app/Model/Coupon.php index a41852d..aabf2b2 100644 --- a/app/Model/Coupon.php +++ b/app/Model/Coupon.php @@ -48,7 +48,7 @@ class Coupon extends Model /** * The attributes that should be cast to native types. */ - protected array $casts = ['coupon_id' => 'integer', 'coupon_client' => 'integer', 'coupon_type' => 'integer', 'coupon_status' => 'integer', 'distribution_object' => 'integer', 'application_scope' => 'integer', 'is_display' => 'integer', 'distribution_with_day' => 'integer', 'coupon_count' => 'integer', 'coupon_take_count' => 'integer', 'coupon_ used_count' => 'integer', 'valid_type' => 'integer', 'valid_days' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; + protected array $casts = ['coupon_id' => 'string', 'coupon_client' => 'integer', 'coupon_type' => 'integer', 'coupon_status' => 'integer', 'distribution_object' => 'integer', 'application_scope' => 'integer', 'is_display' => 'integer', 'distribution_with_day' => 'integer', 'coupon_count' => 'integer', 'coupon_take_count' => 'integer', 'coupon_ used_count' => 'integer', 'valid_type' => 'integer', 'valid_days' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; protected string $primaryKey = "coupon_id"; diff --git a/app/Model/DiseaseClassExpertise.php b/app/Model/DiseaseClassExpertise.php index d80b024..4734141 100644 --- a/app/Model/DiseaseClassExpertise.php +++ b/app/Model/DiseaseClassExpertise.php @@ -32,7 +32,7 @@ class DiseaseClassExpertise extends Model /** * The attributes that should be cast to native types. */ - protected array $casts = ['expertise_id' => 'integer', 'expertise_sort' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; + protected array $casts = ['expertise_id' => 'string', 'expertise_sort' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; protected string $primaryKey = "expertise_id"; diff --git a/app/Request/DoctorAccountRequest.php b/app/Request/DoctorAccountRequest.php index 1fcfe99..c539f73 100644 --- a/app/Request/DoctorAccountRequest.php +++ b/app/Request/DoctorAccountRequest.php @@ -10,7 +10,7 @@ use Hyperf\Validation\Request\FormRequest; class DoctorAccountRequest extends FormRequest { protected array $scenes = [ - 'getInquiryConfig' => [ // 获取我的账户数据 + 'getDoctorAccount' => [ // 获取我的账户数据 'date', ], 'getDoctorAccountInfo' => [ // 获取我的账户日账单明细数据