作者 lyh

gx

@@ -34,18 +34,20 @@ class OaGlobalsoApi @@ -34,18 +34,20 @@ class OaGlobalsoApi
34 */ 34 */
35 public function order_info($order_id) 35 public function order_info($order_id)
36 { 36 {
37 - $api_url = $this->url . '/api/order_info';  
38 - $params = [  
39 - 'token' => $this->token,  
40 - 'order_id' => $order_id,  
41 - ]; 37 + $api_url = $this->url . '/api/order_info?token='.$this->token.'&order_id='.$order_id;
  38 +// $params = [
  39 +// 'token' => $this->token,
  40 +// 'order_id' => $order_id,
  41 +// ];
42 42
43 //https://oa.cmer.com/api/order_info 43 //https://oa.cmer.com/api/order_info
44 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($api_url, true) . PHP_EOL, FILE_APPEND); 44 @file_put_contents(storage_path('logs/lyh_error.log'), var_export($api_url, true) . PHP_EOL, FILE_APPEND);
45 - $api_url = 'www.baidu.com';  
46 // try { 45 // try {
47 - $res = HttpUtils::get($api_url, $params);  
48 - $res = Arr::s2a($res); 46 +// $res = HttpUtils::get($api_url, $params);
  47 + $res = http_get($api_url,["charset" => "UTF-8"]);
  48 + var_dump($res);
  49 + die();
  50 +// $res = Arr::s2a($res);
49 // } catch (\Exception | GuzzleException $e) { 51 // } catch (\Exception | GuzzleException $e) {
50 // errorLog('项目信息', $params, $e); 52 // errorLog('项目信息', $params, $e);
51 // return false; 53 // return false;