Commit 1225e938 by 杨昕

更改阿里token返回格式

parent 2d4e8a39
Pipeline #18918 passed with stages
in 1 minute 1 second
...@@ -23,7 +23,7 @@ class AliOssModel ...@@ -23,7 +23,7 @@ class AliOssModel
$res = http_request_code($url,$header,"POST",json_encode($data),2); $res = http_request_code($url,$header,"POST",json_encode($data),2);
LogModel::addlog([" 获取阿里OSS临时token 1"=>$res,"请求URL"=>$url,"请求头header"=>$header]); LogModel::addlog([" 获取阿里OSS临时token 1"=>$res,"请求URL"=>$url,"请求头header"=>$header]);
$result = json_decode($res); $result = json_decode($res,true);
if ($result["code"] != 0){ if ($result["code"] != 0){
throw new \Exception("获取token失败"); throw new \Exception("获取token失败");
} }
......
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