...
|
...
|
@@ -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!',
|
...
|
...
|
|