Store the customized Shopro mall so it can be kept on the remote.
Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace addons\shopro\validate;
|
||||
|
||||
use think\Validate;
|
||||
use app\admin\validate\shopro\traits\CustomRule;
|
||||
|
||||
class Withdraw extends Validate
|
||||
{
|
||||
use CustomRule;
|
||||
|
||||
protected $rule = [
|
||||
'type' => 'require',
|
||||
'money' => 'require|float|gt:0',
|
||||
'account_name' => 'require',
|
||||
'account_no' => 'requireIfAll:type,alipay,bank',
|
||||
'account_header' => 'requireIf:type,bank',
|
||||
'withdraw_sn' => 'require',
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'type.require' => '请选择提现类型',
|
||||
'money.require' => '请输入提现金额',
|
||||
'money.float' => '请输入正确的提现金额',
|
||||
'money.gt' => '请输入正确的提现金额',
|
||||
'account_name.require' => '请填写真实姓名',
|
||||
'account_no.requireIfAll' => '请填写账号信息',
|
||||
'account_header.requireIf' => '请填写开户行',
|
||||
'withdraw_sn.require' => '未找到您的提现信息',
|
||||
];
|
||||
|
||||
|
||||
|
||||
protected $scene = [
|
||||
'apply' => ['type', 'money', 'account_name', 'account_no', 'account_header'],
|
||||
'retry' => ['type', 'withdraw_sn'],
|
||||
'cancel' => ['type', 'withdraw_sn'],
|
||||
];
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户