shish %!s(int64=2) %!d(string=hai) anos
pai
achega
e4cc836e8a

+ 1 - 1
app-ghs/controllers/RenewController.php

@@ -104,7 +104,7 @@ class RenewController extends BaseController
                 $unitPrice = $pfLevel == 0 ? 0.1 : 0.2;
             }
         } else {
-            $unitPrice = $pfLevel == 0 ? 0.1 : 0.2;
+            $unitPrice = $pfLevel == 0 ? 0.1 : 10000;
         }
         $price = bcmul($unitPrice, $year, 2);
         $data = [

+ 2 - 2
biz/pt/classes/PtAssetClass.php

@@ -107,8 +107,8 @@ class PtAssetClass extends BaseClass
             'io' => 1,
             'payWay' => $order->payWay,
             'event' => $event,
-            'sjId' => $order->sjId,
-            'shopId' => $order->shopId,
+            'sjId' => $order->sjId ?? 0,
+            'shopId' => $order->shopId ?? 0,
             'mainId' => $order->mainId ?? 0,
             'tx' => $tx,
             'ptStyle' => $ptStyle,

+ 2 - 2
biz/shop/classes/ShopClass.php

@@ -219,8 +219,8 @@ class ShopClass extends BaseClass
     public static function customRechargeAddBalance($main, $shop, $order)
     {
         $mainId = $shop->mainId ?? 0;
-        $balance = bcadd($main->balance, $order->actPrice, 2);
-        $txBalance = bcadd($main->txBalance, $order->actPrice, 2);
+        $balance = bcadd($main->balance, $order->amount, 2);
+        $txBalance = bcadd($main->txBalance, $order->amount, 2);
         $main->balance = $balance;
         $main->txBalance = $txBalance;
         $main->save();