作者 李小龙

post请求传token

@@ -138,6 +138,7 @@ function httpPost($url, $data, $header = [],$is_json = true) @@ -138,6 +138,7 @@ function httpPost($url, $data, $header = [],$is_json = true)
138 $header = array( 138 $header = array(
139 "Accept: application/json", 139 "Accept: application/json",
140 "Content-Type:application/json;charset=utf-8", 140 "Content-Type:application/json;charset=utf-8",
  141 + "Token:".env("WEB_SITE_TOKEN")
141 ); 142 );
142 } 143 }
143 $ch = curl_init(); 144 $ch = curl_init();