Commit 3d82e6ca authored by wwccw0591's avatar wwccw0591

pc

parent 678db1bb
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
namespace DAO; namespace DAO;
use Our\ApiConst;
use Our\Common; use Our\Common;
use Our\CommonExtension; use Our\CommonExtension;
...@@ -379,8 +380,10 @@ class GoodsModel extends \DAO\AbstractModel { ...@@ -379,8 +380,10 @@ class GoodsModel extends \DAO\AbstractModel {
//ccw //ccw
public function convert($goodses,$extentField=false){ public function convert($goodses,$extentField=false){
foreach($goodses as &$goods){ foreach($goodses as &$goods){
if(!empty($extentField) || empty($goods['refundStateName'])){ if($goods['refundId']==ApiConst::zero){
$goods['refundStateName']=$extentField; if((!empty($extentField) || empty($goods['refundStateName'])) ){
$goods['refundStateName']=$extentField;
}
} }
$goods['goodsImage']=\Our\ImageUtil::getGoodsImgUrl($goods['goodsImage'],\Our\ApiConst::goodsSmallSize); $goods['goodsImage']=\Our\ImageUtil::getGoodsImgUrl($goods['goodsImage'],\Our\ApiConst::goodsSmallSize);
if($goods['goodsSpec']){ if($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