Skip to content

Commit 5b7adb7

Browse files
authored
Update back.php
1 parent 48e9bd1 commit 5b7adb7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

pay/back.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ function doAction($payRowId, $gateType){
185185
$description = $payParam['description'];
186186

187187
$from_id = $user_id;
188-
189188
$plan_id = $payParam['plan_id'];
190189
$volume = $payParam['volume'];
191190
$days = $payParam['day'];
@@ -221,21 +220,22 @@ function doAction($payRowId, $gateType){
221220
$stmt->execute();
222221
$file_detail = $stmt->get_result()->fetch_assoc();
223222
$stmt->close();
223+
224+
if($volume == 0 && $days == 0){
225+
$volume = $file_detail['volume'];
226+
$days = $file_detail['days'];
227+
}
224228

225-
$days = $file_detail['days'];
226229
$date = time();
227230
$expire_microdate = floor(microtime(true) * 1000) + (864000 * $days * 100);
228231
$expire_date = $date + (86400 * $days);
229232
$type = $file_detail['type'];
230233

231-
if($volume == 0 && $days == 0){
232-
$volume = $file_detail['volume'];
233-
$days = $file_detail['days'];
234-
}
235234

236235
$server_id = $file_detail['server_id'];
237236
$netType = $file_detail['type'];
238237
$acount = $file_detail['acount'];
238+
$protocol = $file_detail['protocol'];
239239
$inbound_id = $file_detail['inbound_id'];
240240
$limitip = $file_detail['limitip'];
241241
$rahgozar = $file_detail['rahgozar'];
@@ -341,7 +341,6 @@ function doAction($payRowId, $gateType){
341341
$response = addInboundAccount($server_id, $uniqid, $inbound_id, $expire_microdate, $remark, $volume, $limitip, null, $fid);
342342
}
343343
}
344-
345344
if(is_null($response)){
346345
showForm('پرداخت شما با موفقیت انجام شد ولی گلم ، اتصال به سرور برقرار نیست لطفا مدیر رو در جریان بزار ...مبلغ ' . number_format($amount) ." به کیف پولت اضافه شد",$payDescription);
347346

0 commit comments

Comments
 (0)