Store the customized Shopro mall so it can be kept on the remote.
Co-authored-by: Cursor <cursoragent@cursor.com>
这个提交包含在:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace addons\shopro\validate\third;
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Wechat extends Validate
|
||||
{
|
||||
|
||||
protected $regex = [
|
||||
'mobile' => '/^1[3456789]\d{9}$/',
|
||||
];
|
||||
|
||||
protected $rule = [
|
||||
'mobile' => 'require|regex:mobile|unique:user'
|
||||
];
|
||||
|
||||
protected $message = [
|
||||
'mobile.require' => '手机号必须填写',
|
||||
'mobile.regex' => '手机号格式不正确',
|
||||
'mobile.unique' => '手机号已被占用',
|
||||
];
|
||||
|
||||
|
||||
protected $scene = [
|
||||
'bindWechatMiniProgramMobile' => ['mobile']
|
||||
];
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户