fix:网站设置/基本设置/支付设置/验证码设置

This commit is contained in:
atshike
2024-12-31 14:20:14 +08:00
parent 08d8b7d1ba
commit 75cdcd384a
2 changed files with 2 additions and 3 deletions
-1
View File
@@ -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邮箱
]);
}
+2 -2
View File
@@ -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',