|
@@ -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;
|