Kirin преди 1 година
родител
ревизия
939e3de680
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      crmeb/services/WithdrawService.php

+ 2 - 2
crmeb/services/WithdrawService.php

@@ -41,7 +41,7 @@ class WithdrawService
         $signString = http_build_query($data) . '&secret=' . self::$secret;
         $sign = md5($signString);
         $data['sign'] = $sign;
-        $res = HttpService::postRequest(self::$url . '/sdk/v1/login', $data, ['content-type:application/json']);
+        $res = json_decode(HttpService::postRequest(self::$url . '/sdk/v1/login', $data, ['content-type:application/json']), true);
         var_dump($res);
     }
 
@@ -50,6 +50,6 @@ class WithdrawService
     {
         $url = self::$url . $url;
         $data = ['token' => self::$token, 'data' => $data];
-        return HttpService::postRequest($url, $data, ['content-type:application/json']);
+        return json_decode(HttpService::postRequest($url, $data, ['content-type:application/json']), true);
     }
 }