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

测试提交

@@ -234,7 +234,7 @@ class ProductController extends RestBaseController @@ -234,7 +234,7 @@ class ProductController extends RestBaseController
234 'fee_explain' => $data['fee_explain'], 234 'fee_explain' => $data['fee_explain'],
235 'refund_explain' => $data['refund_explain'], 235 'refund_explain' => $data['refund_explain'],
236 'user_id' => $this->userId, 236 'user_id' => $this->userId,
237 - 'remark' => $data['remark'] ? : '' 237 + 'remark' => isset($data['remark']) ? $data['remark'] : ''
238 ]; 238 ];
239 $result = Db::name('product')->insert($arr); 239 $result = Db::name('product')->insert($arr);
240 if ($result === false) { 240 if ($result === false) {
@@ -550,7 +550,7 @@ class ProductController extends RestBaseController @@ -550,7 +550,7 @@ class ProductController extends RestBaseController
550 $validate = new Validate([ 550 $validate = new Validate([
551 'mobile' => 'require', 551 'mobile' => 'require',
552 'age' => 'require', 552 'age' => 'require',
553 - 'job' => 'require|in:1,2,3', 553 + 'job' => 'require|in:0,1,2,3',
554 'house' => 'require|in:0,1,2', 554 'house' => 'require|in:0,1,2',
555 'policy' => 'require|in:0,1,2', 555 'policy' => 'require|in:0,1,2',
556 'car' => 'require|in:0,1,2,3', 556 'car' => 'require|in:0,1,2,3',
@@ -560,7 +560,7 @@ class ProductController extends RestBaseController @@ -560,7 +560,7 @@ class ProductController extends RestBaseController
560 'mobile.require' => '缺少参数mobile!', 560 'mobile.require' => '缺少参数mobile!',
561 'age.require' => '缺少参数age!', 561 'age.require' => '缺少参数age!',
562 'job.require' => '缺少参数job!', 562 'job.require' => '缺少参数job!',
563 - 'job.in' => '参数job范围1-3!', 563 + 'job.in' => '参数job范围0-3!',
564 'house.require' => '缺少参数house!', 564 'house.require' => '缺少参数house!',
565 'house.in' => '参数house范围0-2!', 565 'house.in' => '参数house范围0-2!',
566 'policy.require' => '缺少参数policy!', 566 'policy.require' => '缺少参数policy!',
@@ -656,7 +656,7 @@ class ProductController extends RestBaseController @@ -656,7 +656,7 @@ class ProductController extends RestBaseController
656 $validate = new Validate([ 656 $validate = new Validate([
657 'mobile' => 'require', 657 'mobile' => 'require',
658 'age' => 'require', 658 'age' => 'require',
659 - 'job' => 'require|in:1,2,3', 659 + 'job' => 'require|in:0,1,2,3',
660 'house' => 'require|in:0,1,2', 660 'house' => 'require|in:0,1,2',
661 'policy' => 'require|in:0,1,2', 661 'policy' => 'require|in:0,1,2',
662 'car' => 'require|in:0,1,2,3', 662 'car' => 'require|in:0,1,2,3',
@@ -666,7 +666,7 @@ class ProductController extends RestBaseController @@ -666,7 +666,7 @@ class ProductController extends RestBaseController
666 'mobile.require' => '缺少参数mobile!', 666 'mobile.require' => '缺少参数mobile!',
667 'age.require' => '缺少参数age!', 667 'age.require' => '缺少参数age!',
668 'job.require' => '缺少参数job!', 668 'job.require' => '缺少参数job!',
669 - 'job.in' => '参数job范围1-3!', 669 + 'job.in' => '参数job范围0-3!',
670 'house.require' => '缺少参数house!', 670 'house.require' => '缺少参数house!',
671 'house.in' => '参数house范围0-2!', 671 'house.in' => '参数house范围0-2!',
672 'policy.require' => '缺少参数policy!', 672 'policy.require' => '缺少参数policy!',
@@ -66,7 +66,7 @@ class UserController extends RestBaseController @@ -66,7 +66,7 @@ class UserController extends RestBaseController
66 $validate = new Validate([ 66 $validate = new Validate([
67 'mobile' => 'require', 67 'mobile' => 'require',
68 'age' => 'require', 68 'age' => 'require',
69 - 'job' => 'require|in:1,2', 69 + 'job' => 'require|in:0,1,2',
70 'house' => 'require|in:0,1,2', 70 'house' => 'require|in:0,1,2',
71 'policy' => 'require|in:0,1', 71 'policy' => 'require|in:0,1',
72 'car' => 'require|in:0,1,3', 72 'car' => 'require|in:0,1,3',
@@ -76,7 +76,7 @@ class UserController extends RestBaseController @@ -76,7 +76,7 @@ class UserController extends RestBaseController
76 'mobile.require' => '缺少参数mobile!', 76 'mobile.require' => '缺少参数mobile!',
77 'age.require' => '缺少参数age!', 77 'age.require' => '缺少参数age!',
78 'job.require' => '缺少参数job!', 78 'job.require' => '缺少参数job!',
79 - 'job.in' => '参数job范围1-2!', 79 + 'job.in' => '参数job范围0-2!',
80 'house.require' => '缺少参数house!', 80 'house.require' => '缺少参数house!',
81 'house.in' => '参数house范围0-2!', 81 'house.in' => '参数house范围0-2!',
82 'policy.require' => '缺少参数policy!', 82 'policy.require' => '缺少参数policy!',