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