Commit 3d82e6ca authored by wwccw0591's avatar wwccw0591

pc

parent 678db1bb
......@@ -3,6 +3,7 @@
namespace DAO;
use Our\ApiConst;
use Our\Common;
use Our\CommonExtension;
......@@ -379,9 +380,11 @@ class GoodsModel extends \DAO\AbstractModel {
//ccw
public function convert($goodses,$extentField=false){
foreach($goodses as &$goods){
if(!empty($extentField) || empty($goods['refundStateName'])){
if($goods['refundId']==ApiConst::zero){
if((!empty($extentField) || empty($goods['refundStateName'])) ){
$goods['refundStateName']=$extentField;
}
}
$goods['goodsImage']=\Our\ImageUtil::getGoodsImgUrl($goods['goodsImage'],\Our\ApiConst::goodsSmallSize);
if($goods['goodsSpec']){
$goods['goodsAttr'] = $this->getFormatGoodsAttr($goods['goodsSpec']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment