浏览代码

钱包修改

lizhen_gitee 10 月之前
父节点
当前提交
b7501612f2
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      application/api/controller/Userwallet.php

+ 4 - 0
application/api/controller/Userwallet.php

@@ -16,6 +16,10 @@ class Userwallet extends Api
     //我的钱包余额
     public function my_wallet(){
         $wallet = Db::name('user_wallet')->where(['user_id' => $this->auth->id])->find();
+
+        $wallet['user_alipay'] = Db::name('user_alipay')->where(['user_id' => $this->auth->id])->find();
+        $wallet['user_bank']   = Db::name('user_bank')->where(['user_id' => $this->auth->id])->find();
+        $wallet['user_wechat'] = Db::name('user_wechat')->where(['user_id' => $this->auth->id])->find();
         $this->success('success',$wallet);
     }