diff --git a/serve/app/Forms/BaseConfig.php b/serve/app/Forms/BaseConfig.php index 4ab829f..ef95f49 100644 --- a/serve/app/Forms/BaseConfig.php +++ b/serve/app/Forms/BaseConfig.php @@ -19,7 +19,6 @@ class BaseConfig implements SimpleForm 'recommend_commission_2' => 'nullable|integer', 'member_pay_commission_1' => 'nullable|integer', // 一级邀请人消费提成 1% 'member_pay_commission_2' => 'nullable|integer', // 二级邀请人消费提成 1% - 'send_code_mode' => 'required|integer|in:1,2', // 1短信2邮箱 ]); } diff --git a/serve/app/Forms/VerifyCode.php b/serve/app/Forms/VerifyCode.php index 9c8b558..4e9aec5 100644 --- a/serve/app/Forms/VerifyCode.php +++ b/serve/app/Forms/VerifyCode.php @@ -11,8 +11,8 @@ class VerifyCode implements SimpleForm public function policy(Request $request): array { return $request->validate([ - 'verify_code_is_open' => 'nullable|boolen', - 'send_code_mode' => 'nullable', + 'verify_code_is_open' => 'required|boolen', + 'send_code_mode' => 'nullable|integer|in:1,2', // 1短信2邮箱 'ali_sms_key' => 'nullable', 'ali_sms_secret' => 'nullable', 'ali_sms_sign_name' => 'nullable',