...
|
...
|
@@ -30,7 +30,7 @@ class ProductController extends RestBaseController |
|
|
* @param name:user_id type:string require:1 other: desc:业务员id
|
|
|
* @param name:company type:string require:0 other: desc:公司信息(这是公司名称下拉列表吗。不懂)
|
|
|
* @param name:policy type:string require:0 other: desc:保单信息1有0无
|
|
|
* @param name:car type:string require:0 other: desc:车辆信息1全款车0无
|
|
|
* @param name:car type:string require:0 other: desc:车辆信息1全款车0无3分期车
|
|
|
* @param name:page type:string require:0 other: desc:页码
|
|
|
* @param name:per_page type:string require:0 other: desc:每页数据量
|
|
|
*
|
...
|
...
|
@@ -45,13 +45,13 @@ class ProductController extends RestBaseController |
|
|
$validate = new Validate([
|
|
|
'user_id' => 'require',
|
|
|
'policy' => 'in:0,1',
|
|
|
'car' => 'in:0,1',
|
|
|
'car' => 'in:0,3',
|
|
|
]);
|
|
|
|
|
|
$validate->message([
|
|
|
'user_id.require' => '参数user_id必须!',
|
|
|
'policy.in' => '参数policy只能为0,1!',
|
|
|
'car.in' => '缺少参数car只能为0,1!',
|
|
|
'car.in' => '缺少参数car只能为0,3!',
|
|
|
]);
|
|
|
|
|
|
$data = $this->request->param();
|
...
|
...
|
@@ -107,7 +107,7 @@ class ProductController extends RestBaseController |
|
|
* @return job:工作信息 1上班 2做生意
|
|
|
* @return policy:保单信息 1有 0无
|
|
|
* @return house:房产信息 1全款房 2分期房 0无
|
|
|
* @return car:车辆信息 1全款车 0无
|
|
|
* @return car:车辆信息 1全款车 0无 3分期车
|
|
|
* @return is_apply:是否申请该产品贷款(1已申请0未申请)
|
|
|
*/
|
|
|
public function getDetails() {
|
...
|
...
|
@@ -164,7 +164,7 @@ class ProductController extends RestBaseController |
|
|
* @param name:policy type:int require:1 other: desc:保单信息1有0无
|
|
|
* @param name:house type:int require:1 other: desc:房产信息1全款房2分期房0无
|
|
|
* @param name:information type:int require:1 other: desc:个人信息
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无3分期车
|
|
|
* @param name:loan_flow type:int require:1 other: desc:贷款流程
|
|
|
* @param name:fee_explain type:int require:1 other: desc:费用说明
|
|
|
* @param name:refund_explain type:int require:1 other: desc:还款说明
|
...
|
...
|
@@ -258,7 +258,7 @@ class ProductController extends RestBaseController |
|
|
* @param name:policy type:int require:1 other: desc:保单信息1有0无
|
|
|
* @param name:house type:int require:1 other: desc:房产信息1全款房2分期房0无
|
|
|
* @param name:information type:int require:1 other: desc:个人信息
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无3分期车
|
|
|
* @param name:loan_flow type:int require:1 other: desc:贷款流程
|
|
|
* @param name:fee_explain type:int require:1 other: desc:费用说明
|
|
|
* @param name:refund_explain type:int require:1 other: desc:还款说明
|
...
|
...
|
@@ -380,7 +380,7 @@ class ProductController extends RestBaseController |
|
|
* @param name:user_id type:int require:1 other: desc:业务员id
|
|
|
* @param name:company type:int require:0 other: desc:工作信息1上班2做生意0不限
|
|
|
* @param name:policy type:int require:0 other: desc:保单信息1有0无2不限
|
|
|
* @param name:car type:int require:0 other: desc:车辆信息1全款车0无2不限
|
|
|
* @param name:car type:int require:0 other: desc:车辆信息1全款车0无2不限3分期车
|
|
|
* @param name:page type:int require:0 other: desc:页码
|
|
|
* @param name:per_page type:int require:0 other: desc:每页数据量
|
|
|
*
|
...
|
...
|
@@ -529,7 +529,7 @@ class ProductController extends RestBaseController |
|
|
* @param name:job type:int require:1 other: desc:工作信息1上班2做生意3不限
|
|
|
* @param name:house type:int require:1 other: desc:房产信息1全款房2分期房0无
|
|
|
* @param name:policy type:int require:1 other: desc:保单信息1有0无2不限
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无2不限
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无2不限3分期车
|
|
|
* @param name:page type:string require:0 other: desc:页码
|
|
|
* @param name:per_page type:string require:0 other: desc:每页数据量
|
|
|
*
|
...
|
...
|
@@ -545,7 +545,7 @@ class ProductController extends RestBaseController |
|
|
'job' => 'require|in:1,2,3',
|
|
|
'house' => 'require|in:0,1,2',
|
|
|
'policy' => 'require|in:0,1,2',
|
|
|
'car' => 'require|in:0,1,2',
|
|
|
'car' => 'require|in:0,1,2,3',
|
|
|
]);
|
|
|
|
|
|
$validate->message([
|
...
|
...
|
@@ -558,7 +558,7 @@ class ProductController extends RestBaseController |
|
|
'policy.require' => '缺少参数policy!',
|
|
|
'policy.in' => '参数policy范围0-2!',
|
|
|
'car.require' => '缺少参数car!',
|
|
|
'car.in' => '参数car范围0-2!',
|
|
|
'car.in' => '参数car范围0-3!',
|
|
|
]);
|
|
|
|
|
|
$data = $this->request->param();
|
...
|
...
|
@@ -635,7 +635,7 @@ class ProductController extends RestBaseController |
|
|
* @param name:job type:int require:1 other: desc:工作信息1上班2做生意3不限
|
|
|
* @param name:house type:int require:1 other: desc:房产信息1全款房2分期房0无
|
|
|
* @param name:policy type:int require:1 other: desc:保单信息1有0无2不限
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无2不限
|
|
|
* @param name:car type:int require:1 other: desc:车辆信息1全款车0无2不限3分期车
|
|
|
* @param name:page type:string require:0 other: desc:页码
|
|
|
* @param name:per_page type:string require:0 other: desc:每页数据量
|
|
|
*
|
...
|
...
|
@@ -651,7 +651,7 @@ class ProductController extends RestBaseController |
|
|
'job' => 'require|in:1,2,3',
|
|
|
'house' => 'require|in:0,1,2',
|
|
|
'policy' => 'require|in:0,1,2',
|
|
|
'car' => 'require|in:0,1,2',
|
|
|
'car' => 'require|in:0,1,2,3',
|
|
|
]);
|
|
|
|
|
|
$validate->message([
|
...
|
...
|
@@ -664,7 +664,7 @@ class ProductController extends RestBaseController |
|
|
'policy.require' => '缺少参数policy!',
|
|
|
'policy.in' => '参数policy范围0-2!',
|
|
|
'car.require' => '缺少参数car!',
|
|
|
'car.in' => '参数car范围0-2!',
|
|
|
'car.in' => '参数car范围0-3!',
|
|
|
]);
|
|
|
|
|
|
$data = $this->request->param();
|
...
|
...
|
|