作者 王智

daima

... ... @@ -23,6 +23,33 @@ class Vip extends Api
/**
* 用户接口
* @ApiTitle (会员接口-验证)
* @ApiSummary (验证)
* @ApiMethod (POST)
* @ApiRoute (/api/Vip/UserInfoRult)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiReturnParams (name="code", type="integer", required=true, sample="0")
* @ApiReturnParams (name="msg", type="string", required=true, sample="返回成功")
* @ApiReturn ({
'code':'1',
'msg':'返回成功',
"data": {
}
})
*/
public function UserInfoRult()
{
$user_id = $this->is_token($this->request->header());
$user = Db::name('user')->where('id', $user_id)->find();
if (empty($user['car_num']) || empty($user['color']) || empty($user['car_type']) || empty($user['address']) || empty($user['address_con'])) {
$this->error('请先完善信息', 0);
die;
}
$this->success('成功', 1);
}
/**
* 用户接口
* @ApiTitle (会员接口-确认信息)
* @ApiSummary (确认信息)
* @ApiMethod (POST)
... ...