期刊素材修改
This commit is contained in:
@@ -244,12 +244,12 @@ class Material
|
||||
$sExtension = empty($aImageInfo['extension']) ? 'jpg' : $aImageInfo['extension'];
|
||||
$sImagePath = 'journal/imgae_'.$iJournalId.'_'.$iJournalStageId.'.'.$sExtension;
|
||||
$sImagePath = ROOT_PATH.$this->sQrCodeUrl.$sImagePath;
|
||||
if (!file_exists($sImagePath)) {//下载图片
|
||||
$aImageInfo = json_decode($this->getImage($sIcon,$iJournalId.'_'.$iJournalStageId,'journal'),true);
|
||||
if(empty($aImageInfo['data'])){
|
||||
return json_encode(['status' => 3,'msg' => 'Image download failed']);
|
||||
}
|
||||
// if (!file_exists($sImagePath)) {//下载图片
|
||||
$aImageInfo = json_decode($this->getImage($sIcon,$iJournalId.'_'.$iJournalStageId,'journal'),true);
|
||||
if(empty($aImageInfo['data'])){
|
||||
return json_encode(['status' => 3,'msg' => 'Image download failed']);
|
||||
}
|
||||
// }
|
||||
|
||||
//调用微信新增素材接口上传
|
||||
$oWechat = new Wechat;
|
||||
|
||||
Reference in New Issue
Block a user