Commit a5e1b4a2 by 杨昕

添加命名空间

parent 74e5c73a
Pipeline #18908 passed with stages
in 1 minute 2 seconds
...@@ -7,9 +7,9 @@ class AliOssModel ...@@ -7,9 +7,9 @@ class AliOssModel
{ {
public static function getAilOssToken($request){ public static function getAilOssToken($request){
$ali_base_url = getenv('ofc-store-svr') ? getenv('ofc-store-svr') : "http://ofc-store-svr-svr"; $ali_base_url = getenv('ofc-store-svr') ? getenv('ofc-store-svr') : "http://ofc-store-svr-svr.micro";
$url = $ali_base_url ."/api/v1/assumeRole?role_arn=".OSS_ROLE_RAN."&role_session_name=".OSS_ROLE_SESSION_NAME; $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); $res = http_request_code($url,null,null,"GET",null,1);
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