Commit 3e104c4f by 杨昕

test

parent 9873b641
Pipeline #18911 passed with stages
in 1 minute 2 seconds
...@@ -10,10 +10,10 @@ class AliOssModel ...@@ -10,10 +10,10 @@ class AliOssModel
$ali_base_url = getenv('ofc-store-svr') ? getenv('ofc-store-svr') : "http://ofc-store-svr-svr.micro"; $ali_base_url = getenv('ofc-store-svr') ? getenv('ofc-store-svr') : "http://ofc-store-svr-svr.micro";
$url = $ali_base_url."/api/v1/assumeRole"; $url = $ali_base_url."/api/v1/assumeRole";
$data = array( $data = array(
"role_arn"=>OSS_ROLE_RAN, "role_arn" => OSS_ROLE_RAN,
"role_session_name" => OSS_ROLE_SESSION_NAME, "role_session_name" => OSS_ROLE_SESSION_NAME,
); );
$res = http_request_code($url,null,"POST",$data,2); $res = http_request_code($url,null,"POST",json_encode($data),2);
LogModel::addlog([" 获取阿里OSS临时token 1"=>$res,"请求URL"=>$url]); LogModel::addlog([" 获取阿里OSS临时token 1"=>$res,"请求URL"=>$url]);
return json_decode($res,true); 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