Skip to content

Commit 9ec90d0

Browse files
authored
Update back.php
1 parent 6446f7e commit 9ec90d0

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

pay/back.php

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
$plan_id = $payParam['plan_id'];
4545
$volume = $payParam['volume'];
46-
$day = $payParam['day'];
46+
$days = $payParam['day'];
4747
if($payType == "BUY_SUB") $payDescription = "خرید اکانت";
4848
elseif($payType == "RENEW_ACCOUNT") $payDescription = "تمدید اکانت";
4949
elseif($payType == "INCREASE_WALLET") $payDescription ="شارژ کیف پول";
@@ -159,7 +159,7 @@
159159
$stmt->execute();
160160
$stmt->close();
161161

162-
showForm("پرداخت شما انجام نشد!","درگاه زرین پال");
162+
showForm("پرداخت شما انجام نشد!","درگاه نکست پی");
163163
}
164164
}
165165
}
@@ -185,7 +185,7 @@ function doAction($payRowId, $gateType){
185185

186186
$plan_id = $payParam['plan_id'];
187187
$volume = $payParam['volume'];
188-
$day = $payParam['day'];
188+
$days = $payParam['day'];
189189
if($payType == "BUY_SUB") $payDescription = "خرید اشتراک";
190190
elseif($payType == "RENEW_ACCOUNT") $payDescription = "تمدید اکانت";
191191
elseif($payType == "INCREASE_WALLET") $payDescription ="شارژ کیف پول";
@@ -224,8 +224,7 @@ function doAction($payRowId, $gateType){
224224
$type = $file_detail['type'];
225225
$volume = $file_detail['volume'];
226226
$protocol = $file_detail['protocol'];
227-
$amount = $file_detail['price'];
228-
227+
229228
$server_id = $file_detail['server_id'];
230229
$netType = $file_detail['type'];
231230
$acount = $file_detail['acount'];
@@ -475,7 +474,6 @@ function doAction($payRowId, $gateType){
475474
$name = $respd['title'];
476475
$days = $respd['days'];
477476
$volume = $respd['volume'];
478-
$amount = $respd['price'];
479477

480478
if($inbound_id > 0)
481479
$response = editClientTraffic($server_id, $inbound_id, $remark, $volume, $days);
@@ -539,7 +537,6 @@ function doAction($payRowId, $gateType){
539537
$stmt->execute();
540538
$res = $stmt->get_result()->fetch_assoc();
541539
$stmt->close();
542-
$amount = $res['price'];
543540
$volume = $res['volume'];
544541

545542
if($inbound_id > 0)
@@ -603,12 +600,12 @@ function doAction($payRowId, $gateType){
603600
$stmt->execute();
604601
$res = $stmt->get_result()->fetch_assoc();
605602
$stmt->close();
606-
$amount = $res['price'];
607603
$volume = $res['volume'];
608604

609605
$acctxt = '';
610606

611607

608+
612609
if($inbound_id > 0)
613610
$response = editClientTraffic($server_id, $inbound_id, $remark, $volume, 0);
614611
else

0 commit comments

Comments
 (0)