正在显示
1 个修改的文件
包含
1 行增加
和
7 行删除
| @@ -103,8 +103,6 @@ class AyrReleaseController extends BaseController | @@ -103,8 +103,6 @@ class AyrReleaseController extends BaseController | ||
| 103 | 'share_id.required' => 'SHARE_ID不能为空', | 103 | 'share_id.required' => 'SHARE_ID不能为空', |
| 104 | 'hash.required' => 'HASH不能为空' | 104 | 'hash.required' => 'HASH不能为空' |
| 105 | ]); | 105 | ]); |
| 106 | - $image_info = $ayrShareLogic->save_img_info($this->param['hash']); | ||
| 107 | - if(empty($image_info['ayr_id'])){ | ||
| 108 | //获取发送账号详情 | 106 | //获取发送账号详情 |
| 109 | $share_info = $ayrShareLogic->ayr_share_info(); | 107 | $share_info = $ayrShareLogic->ayr_share_info(); |
| 110 | //向第三方存储图片 | 108 | //向第三方存储图片 |
| @@ -114,8 +112,7 @@ class AyrReleaseController extends BaseController | @@ -114,8 +112,7 @@ class AyrReleaseController extends BaseController | ||
| 114 | $param_data = $ayrShare->post_media_upload($param,$share_info['profile_key']); | 112 | $param_data = $ayrShare->post_media_upload($param,$share_info['profile_key']); |
| 115 | //更新图片库 | 113 | //更新图片库 |
| 116 | $ayrShareLogic->save_img($param_data); | 114 | $ayrShareLogic->save_img($param_data); |
| 117 | - } | ||
| 118 | - $this->response('success',Code::SUCCESS,$image_info); | 115 | + $this->response('success',Code::SUCCESS,$param_data); |
| 119 | } | 116 | } |
| 120 | 117 | ||
| 121 | /** | 118 | /** |
| @@ -132,8 +129,6 @@ class AyrReleaseController extends BaseController | @@ -132,8 +129,6 @@ class AyrReleaseController extends BaseController | ||
| 132 | 'share_id.required' => 'SHARE_ID不能为空', | 129 | 'share_id.required' => 'SHARE_ID不能为空', |
| 133 | 'hash.required' => 'HASH不能为空' | 130 | 'hash.required' => 'HASH不能为空' |
| 134 | ]); | 131 | ]); |
| 135 | - $image_info = $ayrShareLogic->save_file_info($this->param['hash']); | ||
| 136 | - if(empty($image_info['ayr_id'])){ | ||
| 137 | //获取发送账号详情 | 132 | //获取发送账号详情 |
| 138 | $share_info = $ayrShareLogic->ayr_share_info(); | 133 | $share_info = $ayrShareLogic->ayr_share_info(); |
| 139 | //向第三方存储图片 | 134 | //向第三方存储图片 |
| @@ -143,7 +138,6 @@ class AyrReleaseController extends BaseController | @@ -143,7 +138,6 @@ class AyrReleaseController extends BaseController | ||
| 143 | $param_data = $ayrShare->post_media_upload($param,$share_info['profile_key']); | 138 | $param_data = $ayrShare->post_media_upload($param,$share_info['profile_key']); |
| 144 | //更新图片库 | 139 | //更新图片库 |
| 145 | $ayrShareLogic->save_file($param_data); | 140 | $ayrShareLogic->save_file($param_data); |
| 146 | - } | ||
| 147 | $this->response('success'); | 141 | $this->response('success'); |
| 148 | } | 142 | } |
| 149 | } | 143 | } |
-
请 注册 或 登录 后发表评论