|
...
|
...
|
@@ -103,8 +103,6 @@ class AyrReleaseController extends BaseController |
|
|
|
'share_id.required' => 'SHARE_ID不能为空',
|
|
|
|
'hash.required' => 'HASH不能为空'
|
|
|
|
]);
|
|
|
|
$image_info = $ayrShareLogic->save_img_info($this->param['hash']);
|
|
|
|
if(empty($image_info['ayr_id'])){
|
|
|
|
//获取发送账号详情
|
|
|
|
$share_info = $ayrShareLogic->ayr_share_info();
|
|
|
|
//向第三方存储图片
|
|
...
|
...
|
@@ -114,8 +112,7 @@ class AyrReleaseController extends BaseController |
|
|
|
$param_data = $ayrShare->post_media_upload($param,$share_info['profile_key']);
|
|
|
|
//更新图片库
|
|
|
|
$ayrShareLogic->save_img($param_data);
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$image_info);
|
|
|
|
$this->response('success',Code::SUCCESS,$param_data);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -132,8 +129,6 @@ class AyrReleaseController extends BaseController |
|
|
|
'share_id.required' => 'SHARE_ID不能为空',
|
|
|
|
'hash.required' => 'HASH不能为空'
|
|
|
|
]);
|
|
|
|
$image_info = $ayrShareLogic->save_file_info($this->param['hash']);
|
|
|
|
if(empty($image_info['ayr_id'])){
|
|
|
|
//获取发送账号详情
|
|
|
|
$share_info = $ayrShareLogic->ayr_share_info();
|
|
|
|
//向第三方存储图片
|
|
...
|
...
|
@@ -143,7 +138,6 @@ class AyrReleaseController extends BaseController |
|
|
|
$param_data = $ayrShare->post_media_upload($param,$share_info['profile_key']);
|
|
|
|
//更新图片库
|
|
|
|
$ayrShareLogic->save_file($param_data);
|
|
|
|
}
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|