"aliyuncs/oss-sdk-php": "^2.4",
use OSS\OssClient;
/* *
* @todo 数据流上传图片到阿里云Oss
* @params goods_id
* @params user_id
* @params type 类型:share
* @params img string
* @return \Illuminate\Http\JsonResponse
* */
public function ossDataFlowExist()
{
try {
$params = request()->input();
$rule = [
'goods_id' => ['required'],
'user_id' => ['required'],
'shop_type' => ['required'],
'img' => ['required'],
'type' => ['required'],
];
$verify_ret = VerifyData::validatorData($params, $rule);
if ($verify_ret instanceof \Exception) {
throw new \Exception($verify_ret->getMessage(), $verify_ret->getCode
阿里Oss字符串上传
最新推荐文章于 2024-08-06 13:10:12 发布