You've already forked qlg.tsgz.moe
addons
app_download_files
extend
hyhproject
admin
app
common
behavior
common
conf
exception
model
taglib
validate
Auth.php
CashConfigs.php
EctWallet.php
GoodsAppraises.php
GoodsConsult.php
Informs.php
Invoices.php
OrderComplains.php
ShopCats.php
Shops.php
UserAddress.php
home
home2
mobile2
wechat2
.htaccess
command.php
mobile
oss
static
thinkphp
upload
vendor
wxtmp
.gitignore
.htaccess
.user.ini
404.html
H5436787D.wgt
admin.php
app-release.apk
app_download.html
cash.lock
demo.php
get_version.php
get_version_new.php
index.html
index.php
reg.lock
robots.txt
20 lines
738 B
PHP
Executable File
20 lines
738 B
PHP
Executable File
<?php
|
|
namespace wstmart\common\validate;
|
|
use think\Validate;
|
|
/**
|
|
* ============================================================================
|
|
* 订单投诉验证器
|
|
*/
|
|
class OrderComplains extends Validate{
|
|
protected $rule = [
|
|
['complainType' ,'in:1,2,3,4','无效的投诉类型!'],
|
|
['complainContent' ,'require|length:3,600','投诉内容不能为空|投诉内容应为3-200个字'],
|
|
['respondContent' ,'require|length:3,600','应诉内容不能为空|应诉内容应为3-200个字'],
|
|
];
|
|
|
|
protected $scene = [
|
|
'add' => ['complainType','complainContent'],
|
|
'edit' => ['complainType','complainContent'],
|
|
'respond' =>['respondContent'],
|
|
];
|
|
} |