|
|
@@ -1613,8 +1613,11 @@ class miniUtil
|
|
|
$result = $curl->setOption(CURLOPT_POSTFIELDS, Json::encode($data))->post($url);
|
|
|
|
|
|
Yii::info('获取小程序图片资源:' . json_encode($result));
|
|
|
-
|
|
|
file_put_contents($file, $result);
|
|
|
+ //上传oss
|
|
|
+ $obj = $behind . $fileName;
|
|
|
+ $obj = ltrim($obj,"/");
|
|
|
+ oss::uploadImage($obj,$file);
|
|
|
return $behind . $fileName;
|
|
|
}
|
|
|
|