作者 潘浩文
1 个管道 的构建 通过 耗费 0 秒

个人中心接口设计

... ... @@ -586,7 +586,7 @@ class UserController extends RestBaseController
/**
* @title 获取客服电话(新)
* @description 获取发布
* @description 获取客服电话
* @author panhaowen
* @url /home/user/getMobile
* @method POST
... ... @@ -597,4 +597,19 @@ class UserController extends RestBaseController
$data=Db::name('config')->where('id',1)->find()['mobile2'];
$this->success('获取信息成功',$data);
}
/**
* @title 获取待提现订单数量(新)
* @description 获取待提现订单数量
* @author panhaowen
* @url /home/user/getWithdraw
* @method POST
* @header name:XX-Token require:1 default: desc:token
*/
public function getWithdraw(){
$userId=$this->getUserId();
$postId=Db::name('post')->where('user_id',$userId)->find()['id'];
$count=Db::name('order')->where(['to_post_status'=>4,'post_id'=>$postId])->count();
$this->success('获取信息成功',$count);
}
}
... ...