seven пре 3 дана
родитељ
комит
71162dab82
2 измењених фајлова са 10 додато и 1 уклоњено
  1. 5 1
      app/Http/Controllers/admin/Wallet.php
  2. 5 0
      app/Services/GameplayRuleService.php

+ 5 - 1
app/Http/Controllers/admin/Wallet.php

@@ -15,6 +15,8 @@ use Illuminate\Validation\ValidationException;
 use App\Models\Wallet as WalletModel;
 use App\Models\Withdraw;
 
+use App\Services\GameplayRuleService;
+
 class Wallet extends Controller
 {
 
@@ -234,6 +236,7 @@ class Wallet extends Controller
 
     public function test()
     {
+        $input = request()->get('input','');
         // $contractAddress = TronHelper::getContractAddress('USDT');
         // $result = TronHelper::getTrc20Balance('TTJ1vH18Q4K3seDcjD4912KDHHzm327rtL',$contractAddress);
         // $result = TronHelper::getBalance('TDeGNiweUm86JBJHQ7kXwQ8XQKtrKorHad','USDT');
@@ -243,7 +246,8 @@ class Wallet extends Controller
         // $result = TronHelper::getTrc20UsdtRecharges('TGQaMxtyWeGowy8xqwh98JNNLtc77nzZ8M');
         // $result = TronHelper::getTransactionConfirmations('06407fa9a2ba51c88f1ed01c2296f0069bf305477d3847d41bc3f35cf9190f74');
         // var_dump($result);
-        $result = RechargeService::syncUsdtRechargeRecords('7630843396');
+        $result = GameplayRuleService::bettingRuleVerify('7630843396');
+        var_dump($result);
         // RechargeService::handleRechargeConfirmation('45f313ccc3a2f4113f6cc9a7511e8b5096daa1de76cb57397e152a491c17249f');
         // WalletService::getUserWallet('1777');
     }

+ 5 - 0
app/Services/GameplayRuleService.php

@@ -164,6 +164,11 @@ class GameplayRuleService extends BaseService
         Cache::forget($cacheKey);
     }
 
+    /**
+     * @description: 校验输入的内容
+     * @param {*} $input
+     * @return {*}
+     */    
     public static function bettingRuleVerify($input)
     {
         $result = self::enum()::validateInput($input);