...
|
...
|
@@ -625,6 +625,34 @@ class Order extends Api |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (佣金明细中的金额)
|
|
|
* @ApiSummary (佣金明细中的金额)
|
|
|
* @ApiMethod (POST)
|
|
|
* @ApiRoute (/api/order/balance)
|
|
|
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
|
|
|
*
|
|
|
* @ApiReturn({
|
|
|
"code": 1,
|
|
|
"msg": "SUCCESS",
|
|
|
"time": "1553839125",
|
|
|
"data": {
|
|
|
"id"://id
|
|
|
"balance"://余额
|
|
|
}
|
|
|
})
|
|
|
*/
|
|
|
public function balance()
|
|
|
{
|
|
|
$user_id = $this->getUserId();
|
|
|
$teacher = Db::name('teacher')
|
|
|
->where('user_id',$user_id)
|
|
|
->field('id,balance')
|
|
|
->find();
|
|
|
$this->success('success',$teacher);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* @ApiTitle (提现)
|
|
|
* @ApiSummary (提现)
|
|
|
* @ApiMethod (POST)
|
...
|
...
|
|