This commit is contained in:
mkm 2023-10-14 16:55:05 +08:00
parent de3f43ace8
commit 5d809c4ec9
2 changed files with 15 additions and 2 deletions

View File

@ -16,7 +16,16 @@ USERNAME = preview_shop_lihaink_cn
PASSWORD = HwQ2RsjDTDJWcS7r PASSWORD = HwQ2RsjDTDJWcS7r
CHARSET = utf8mb4 CHARSET = utf8mb4
DEBUG = true DEBUG = true
[DATABASE]
TYPE = mysql
HOSTNAME = 47.109.36.146
DATABASE = ceshi_shop_lihaink_cn
PREFIX = eb_
HOSTPORT = 3306
USERNAME = ceshi_shop_lihaink_cn
PASSWORD = 4EfPeWfkx2rtGQef
CHARSET = utf8mb4
DEBUG = true
[LANG] [LANG]
default_lang = zh-cn default_lang = zh-cn

View File

@ -1271,9 +1271,13 @@ class ProductRepository extends BaseRepository
$res['content']['content']=['image'=>$image]; $res['content']['content']=['image'=>$image];
} }
else{ else{
if(is_Array($content)){
$res['content']['content']=['image'=>$content];
}else{
$res['content']['content']=$content; $res['content']['content']=$content;
} }
} }
}
$res['merchant']['recommend'] = $this->getRecommend($res['product_id'], $res['mer_id']); $res['merchant']['recommend'] = $this->getRecommend($res['product_id'], $res['mer_id']);
$spu = app()->make(SpuRepository::class)->getSpuData( $spu = app()->make(SpuRepository::class)->getSpuData(