diff --git a/application/common/Material.php b/application/common/Material.php index a8a1a64..e38aafa 100644 --- a/application/common/Material.php +++ b/application/common/Material.php @@ -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;