安徽博创起重服务端程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

41 lines
700 B

<?php
namespace app\api\validate;
use app\common\basics\Validate;
class OrderResourceValidate extends Validate
{
protected $rule = [
'org_id' => 'require',
];
protected $message = [
'org_id' => '请选择资料'
];
protected $scene = [
'add' => ['id'],
'detail' => ['id'],
];
/**
* @notes 参数验证
* @param $value
* @param $arr
* @param $data
* @return bool|string
* @author suny
* @date 2021/7/13 6:29 下午
*/
public function checkParam($value, $arr, $data)
{
if (!isset($data['org_id'])) {
return '请选择资料';
}
return true;
}
}