Kirin 1 سال پیش
والد
کامیت
7b398a0a45
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      app/controller/api/v1/PublicController.php
  2. 1 1
      crmeb/services/WithdrawService.php

+ 0 - 1
app/controller/api/v1/PublicController.php

@@ -60,7 +60,6 @@ class PublicController extends BaseController
     public function test()
     {
         var_dump(WithdrawService::init()::getToken());
-
     }
 
     /**

+ 1 - 1
crmeb/services/WithdrawService.php

@@ -30,7 +30,7 @@ class WithdrawService
     public static function init()
     {
         $token = CacheService::get('withdraw_token', '');
-        if (!self::$token) {
+        if (!$token) {
             $token = self::login();
             CacheService::set('withdraw_token', $token, 500);
         }