Commit 6878340f authored by liuyuzhen's avatar liuyuzhen

地址和广告前缀去除

parent 26f28d53
......@@ -535,7 +535,8 @@ class AddressServiceModel extends \Business\AbstractModel {
\Error\ErrorModel::throwException(\Error\CodeConfigModel::emptyAddressAndName);
}
if(!($address['tag_type']>=\Our\ApiConst::zero&&$address['tag_type']<=3)){
\Error\ErrorModel::throwException(\Error\CodeConfigModel::wrongAddressTagType);
//\Error\ErrorModel::throwException(\Error\CodeConfigModel::wrongAddressTagType);
$address['tag_type'] = \Our\ApiConst::zero;
}
if($province){
$province = mb_substr($province,0,2);
......
......@@ -39,7 +39,7 @@ class AdvModel extends \DAO\AbstractModel{
foreach($advs as $adv){
$advContent=unserialize($adv['adv_content']);
if($advContent['adv_pic_url']){
// $temp['href']=\Our\NameConst::httpPrefix.$advContent['adv_pic_url'];
//$temp['href']=\Our\NameConst::httpPrefix.$advContent['adv_pic_url'];
$temp['href']=$advContent['adv_pic_url'];
}
$temp['imageUrl']=\Our\Common::getStaticFile($advContent['adv_pic'],\Our\ImageConst::advPath);
......
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