Commit 74e5c73a by 杨昕

test2

parent 07de4a41
Pipeline #18907 passed with stages
in 1 minute 1 second
......@@ -6,10 +6,11 @@ const OSS_ROLE_SESSION_NAME = "client-001";
class AliOssModel
{
public static function getAilOssToken($request){
$ali_base_url = getenv("oss_ali")??"http://ofc-store-svr-svr";
$ali_base_url = getenv('ofc-store-svr') ? getenv('ofc-store-svr') : "http://ofc-store-svr-svr";
$url = $ali_base_url ."/api/v1/assumeRole?role_arn=".OSS_ROLE_RAN."&role_session_name=".OSS_ROLE_SESSION_NAME;
$res = http_request_code($url,null,null,"GET",null,3);
LogModel::addlog(["获取阿里OSS临时token"=>$res,"请求URL"=>$url]);
LogModel::addlog([" 获取阿里OSS临时token 1"=>$res,"请求URL"=>$url]);
return json_decode($res,true);
}
}
\ No newline at end of file
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