Browse Source

vip充值,我的钱包+流水

lizhen_gitee 1 year ago
parent
commit
a6dd41abca

+ 2 - 2
application/api/controller/Pay.php

@@ -69,7 +69,7 @@ class Pay extends Api
 
         $orderid = Db::name('pay_order')->insertGetId($data);
 
-//        $openid = $this->auth->mini_openid;
+        $openid = $this->auth->wechat_openid;
         //下单
         $params = [
             'type'         => $pay_type,
@@ -77,7 +77,7 @@ class Pay extends Api
             'title'        => '支付订单',
             'amount'       => $data['order_amount'],
             'method'       => $platform,
-//            'openid'       => $openid,
+            'openid'       => $openid,
             'notifyurl' => config('pay_notify_url').'/api/notify/vip_notify_base/paytype/'.$pay_type,
             'returnurl' => '',
         ];

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

@@ -21,39 +21,19 @@ class Userwallet extends Api
     }
 
 
-
-    //我的余额日志
-    public function my_money_log(){
-        $type = input_post('type',0);
-
-        $map = [
-           'user_id' => $this->auth->id,
-        ];
-        if($type){
-            $map['log_type'] = $type;
-        }
-
-        $list = Db::name('user_money_log')
-            ->field('id,log_type,before,change_value,remain,remark,createtime')
-            ->where($map)->order('id desc')->autopage()->select();
-        $list = $this->list_appen_logtext($list);
-
-        $this->success('success',$list);
-    }
-
     //金币日志
     public function my_gold_log(){
-        $type = input_post('type',0);
+        $money_type = input('money_type',0);
 
         $map = [
             'user_id' => $this->auth->id,
         ];
-        if($type){
-            $map['log_type'] = $type;
+        if($money_type){
+            $map['money_type'] = $money_type;
         }
 
         $list = Db::name('user_gold_log')
-            ->field('id,log_type,before,change_value,remain,remark,createtime')
+            ->field('id,log_type,money_type,before,change_value,remain,remark,createtime')
             ->where($map)->order('id desc')->autopage()->select();
         $list = $this->list_appen_logtext($list);
 

+ 1 - 1
application/extra/site.php

@@ -73,7 +73,7 @@ return array (
 1、青少年模式开启后会立即生效,需要输入密码关闭青少年模式才能继续使用。
 2、青少年模式开启后,每次登录或重启应用均需要输入密码,关闭后才能正常使用APP。',
   'user_audit_switch' => '0',
-  'user_auth_switch' => '1',
+  'user_auth_switch' => '0',
   'fangzhapian' => '以下行为一经发现,平台将严肃处理 
 1、以交友/网恋等为由诱导发生任何形式的金钱来往
 2、添加联系方式后,线下要求转账/发红包/代付款等行为