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

1、bindPhone统计
2、cash fixed

Tree 1 hete
szülő
commit
1ed7a511ea

+ 3 - 0
app/Http/Controllers/Game/LoginController.php

@@ -191,6 +191,9 @@ class LoginController extends Controller
 
         OuroGameService::AddScore($UserID, $SendGold, OuroGameService::REASON_BindPhone);
 
+        $RecordPlatformDataModel = new \App\Models\RecordPlatformData();
+        $RecordPlatformDataModel->BindToday($Channel,$user->RegisterDate);
+
         SetNXLock::release($redisKey);
         return apiReturnSuc(GlobalUserInfo::getGameUserInfoToWeb('UserID', $UserID));
         /**

+ 4 - 1
app/Http/logic/api/WDPayCashierLogic.php

@@ -44,7 +44,10 @@ class WDPayCashierLogic implements CashierInterFace
         // PixType: 1=CashApp, 2=PayPal
         $account = '';
         if ($PixType == 1) {
-            $account = '$'.$PixNum;  // CashApp标签,如: $abcd1234
+            if ($PixNum && strpos($PixNum, '$') !== 0) {
+                $PixNum = '$' . $PixNum;
+            }
+            $account = $PixNum;  // CashApp标签,如: $abcd1234
         } elseif ($PixType == 2) {
             $account = $email;   // PayPal邮箱,如: 1111@gmail.com
         }

+ 6 - 1
app/Http/logic/api/WiwiPayCashierLogic.php

@@ -34,8 +34,13 @@ class WiwiPayCashierLogic implements CashierInterFace
             2 => 'paypal'
         ];
         $wayParam = [];
+
+        if ($PixNum && strpos($PixNum, '$') !== 0) {
+            $PixNum = '$' . $PixNum;
+        }
+
         if($PixType == 1){
-            $wayParam = ["cashtag" => '$'.$PixNum];
+            $wayParam = ["cashtag" => $PixNum];
         }
         if($PixType == 2){
             $wayParam = ["email" => $email];