...
|
...
|
@@ -190,6 +190,55 @@ class Order extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (咨询信息)
|
|
|
* @ApiSummary (咨询信息)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiRoute (/api/order/consult)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
*
|
|
|
* @ApiParams (name="order_id", type="int", required=true, description="订单ID")
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "SUCCESS",
|
|
|
"time": "1553839125",
|
|
|
"data": {
|
|
|
"business"://所属行业,
|
|
|
"address"://经营地区/职能类别,
|
|
|
"product"://产品/职位等级,
|
|
|
"scale"://公司规模/下属人数,
|
|
|
"content"://问题描述
|
|
|
"type"://1经营管理2职业发展
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function consult()
|
|
|
{
|
|
|
$user_id = $this->getUserId();
|
|
|
$order_id = $this->request->param('order_id');
|
|
|
if(empty($order_id)){
|
|
|
$this->error('缺少必要参数');
|
|
|
}
|
|
|
$data = Db::name('order')
|
|
|
->where('id',$order_id)
|
|
|
->find();
|
|
|
|
|
|
$info = Db::name('territory')
|
|
|
->alias('a')
|
|
|
->join('contype b','a.contype_id = b.id')
|
|
|
->where('a.id',$data['territory_id'])
|
|
|
->field('a.id,a.contype_id,b.type,b.title')
|
|
|
->find();
|
|
|
$list['business'] = $data['business'];
|
|
|
$list['address'] = $data['address'];
|
|
|
$list['product'] = $data['product'];
|
|
|
$list['scale'] = $data['scale'];
|
|
|
$list['content'] = $data['content'];
|
|
|
$list['type'] = $info['type'];
|
|
|
$this->success('success',$list);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (续约订单支付)
|
|
|
* @ApiSummary (续约订单支付)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
|