Forráskód Böngészése

充值改用rmb_to_gold

lizhen_gitee 9 hónapja
szülő
commit
713d449130

+ 1 - 1
application/api/controller/HuiPay.php

@@ -153,7 +153,7 @@ class HuiPay extends Api
             if (!empty($freemoney)) {
                 $rc_id = 0;
                 $money = floatval($freemoney);
-                $bili = config('site.money_to_gold') ?: 10;
+                $bili = config('site.rmb_to_gold') ?: 10;
                 $gold = bcmul($money, $bili, 0);
                 $first_gold = 0;
                 $first_vipdays = 0;

+ 3 - 25
application/api/controller/Pay.php

@@ -265,7 +265,7 @@ class Pay extends Api
             if(!empty($freemoney)){
                 $rc_id = 0;
                 $money = floatval($freemoney);
-                $bili = config('site.money_to_gold') ?: 10;
+                $bili = config('site.rmb_to_gold') ?: 10;
                 $gold  = bcmul($money,$bili,0);
                 $first_gold = 0;
                 $first_vipdays = 0;
@@ -343,29 +343,7 @@ class Pay extends Api
         }
     }
 
-    /*public function testpay(){
-        $sandpay = new \app\common\library\Sandpay();
-        $sandpayParams = [];
-        $res = $sandpay->wechath5($sandpayParams);
-        if ($res['status'] == 1) {
-            $this->success('成功', $res['data']);
-        }else {
-            $this->error('失败', $res['data']);
-        }
-
-    }*/
 
-    /*public function testsuningpay(){
-        $suningpay = new \app\common\library\SuningPay();
-        $suningpayParams = [];
-        $res = $suningpay->wechat($suningpayParams);
-        if ($res['status'] == 1) {
-            $this->success('成功', $res['data']);
-        }else {
-            $this->error('失败', $res['data']);
-        }
-
-    }*/
 
     //vip用的,创建订单废弃
     public function sand_vip_recharge(){
@@ -442,7 +420,7 @@ class Pay extends Api
 
     //充值金币 创建订单废弃
     public function sand_gold_recharge(){
-
+        exit;
         $rc_id     = input_post('rc_id',0);
         $pay_type  = input_post('pay_type','wechat');
         $freemoney = input_post('freemoney', 0, 'intval');
@@ -469,7 +447,7 @@ class Pay extends Api
         if(!empty($freemoney)){
             $rc_id = 0;
             $money = floatval($freemoney);
-            $bili = config('site.money_to_gold') ?: 10;
+            $bili = config('site.rmb_to_gold') ?: 10;
             $gold  = bcmul($money,$bili,0);
             $first_gold = 0;
             $first_vipdays = 0;

+ 2 - 1
application/api/controller/Supay.php

@@ -144,6 +144,7 @@ class Supay extends Api
     //充值金币 创建订单
     public function gold_recharge()
     {
+        exit;
         Db::startTrans();
         try {
             $rc_id     = input_post('rc_id',0);
@@ -171,7 +172,7 @@ class Supay extends Api
             if(!empty($freemoney)){
                 $rc_id = 0;
                 $money = floatval($freemoney);
-                $bili = config('site.money_to_gold') ?: 10;
+                $bili = config('site.rmb_to_gold') ?: 10;
                 $gold  = bcmul($money,$bili,0);
                 $first_gold = 0;
                 $first_vipdays = 0;