正在显示
2 个修改的文件
包含
28 行增加
和
0 行删除
@@ -625,6 +625,34 @@ class Order extends Api | @@ -625,6 +625,34 @@ class Order extends Api | ||
625 | } | 625 | } |
626 | 626 | ||
627 | /** | 627 | /** |
628 | + * @ApiTitle (佣金明细中的金额) | ||
629 | + * @ApiSummary (佣金明细中的金额) | ||
630 | + * @ApiMethod (POST) | ||
631 | + * @ApiRoute (/api/order/balance) | ||
632 | + * @ApiHeaders (name=token, type=string, required=true, description="请求的Token") | ||
633 | + * | ||
634 | + * @ApiReturn({ | ||
635 | + "code": 1, | ||
636 | + "msg": "SUCCESS", | ||
637 | + "time": "1553839125", | ||
638 | + "data": { | ||
639 | + "id"://id | ||
640 | + "balance"://余额 | ||
641 | + } | ||
642 | + }) | ||
643 | + */ | ||
644 | + public function balance() | ||
645 | + { | ||
646 | + $user_id = $this->getUserId(); | ||
647 | + $teacher = Db::name('teacher') | ||
648 | + ->where('user_id',$user_id) | ||
649 | + ->field('id,balance') | ||
650 | + ->find(); | ||
651 | + $this->success('success',$teacher); | ||
652 | + } | ||
653 | + | ||
654 | + | ||
655 | + /** | ||
628 | * @ApiTitle (提现) | 656 | * @ApiTitle (提现) |
629 | * @ApiSummary (提现) | 657 | * @ApiSummary (提现) |
630 | * @ApiMethod (POST) | 658 | * @ApiMethod (POST) |
此 diff 太大无法显示。
-
请 注册 或 登录 后发表评论