Commit b34793a8 by 杨昕

test

parent 3e104c4f
Pipeline #18914 passed with stages
in 1 minute 0 seconds
......@@ -13,7 +13,11 @@ class AliOssModel
"role_arn" => OSS_ROLE_RAN,
"role_session_name" => OSS_ROLE_SESSION_NAME,
);
$res = http_request_code($url,null,"POST",json_encode($data),2);
$header = array(
'Content-Type: application/json; charset=utf-8',
'Content-Length: ' . strlen(json_encode($data))
);
$res = http_request_code($url,$header,"POST",$data,2);
LogModel::addlog([" 获取阿里OSS临时token 1"=>$res,"请求URL"=>$url]);
return json_decode($res,true);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment