作者 lizheng
1 个管道 的构建 通过 耗费 2 秒

测试提交

... ... @@ -234,7 +234,7 @@ class ProductController extends RestBaseController
'fee_explain' => $data['fee_explain'],
'refund_explain' => $data['refund_explain'],
'user_id' => $this->userId,
'remark' => $data['remark'] ? : ''
'remark' => isset($data['remark']) ? $data['remark'] : ''
];
$result = Db::name('product')->insert($arr);
if ($result === false) {
... ... @@ -550,7 +550,7 @@ class ProductController extends RestBaseController
$validate = new Validate([
'mobile' => 'require',
'age' => 'require',
'job' => 'require|in:1,2,3',
'job' => 'require|in:0,1,2,3',
'house' => 'require|in:0,1,2',
'policy' => 'require|in:0,1,2',
'car' => 'require|in:0,1,2,3',
... ... @@ -560,7 +560,7 @@ class ProductController extends RestBaseController
'mobile.require' => '缺少参数mobile!',
'age.require' => '缺少参数age!',
'job.require' => '缺少参数job!',
'job.in' => '参数job范围1-3!',
'job.in' => '参数job范围0-3!',
'house.require' => '缺少参数house!',
'house.in' => '参数house范围0-2!',
'policy.require' => '缺少参数policy!',
... ... @@ -656,7 +656,7 @@ class ProductController extends RestBaseController
$validate = new Validate([
'mobile' => 'require',
'age' => 'require',
'job' => 'require|in:1,2,3',
'job' => 'require|in:0,1,2,3',
'house' => 'require|in:0,1,2',
'policy' => 'require|in:0,1,2',
'car' => 'require|in:0,1,2,3',
... ... @@ -666,7 +666,7 @@ class ProductController extends RestBaseController
'mobile.require' => '缺少参数mobile!',
'age.require' => '缺少参数age!',
'job.require' => '缺少参数job!',
'job.in' => '参数job范围1-3!',
'job.in' => '参数job范围0-3!',
'house.require' => '缺少参数house!',
'house.in' => '参数house范围0-2!',
'policy.require' => '缺少参数policy!',
... ...
... ... @@ -66,7 +66,7 @@ class UserController extends RestBaseController
$validate = new Validate([
'mobile' => 'require',
'age' => 'require',
'job' => 'require|in:1,2',
'job' => 'require|in:0,1,2',
'house' => 'require|in:0,1,2',
'policy' => 'require|in:0,1',
'car' => 'require|in:0,1,3',
... ... @@ -76,7 +76,7 @@ class UserController extends RestBaseController
'mobile.require' => '缺少参数mobile!',
'age.require' => '缺少参数age!',
'job.require' => '缺少参数job!',
'job.in' => '参数job范围1-2!',
'job.in' => '参数job范围0-2!',
'house.require' => '缺少参数house!',
'house.in' => '参数house范围0-2!',
'policy.require' => '缺少参数policy!',
... ...