购物车和购物地址设置

This commit is contained in:
2019-10-30 22:21:07 +08:00
parent caeb0d917c
commit a18c8d4cc8
4 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,7 @@ class Carts extends Base{
$goodsSpecId = (int)input('post.goodsSpecId');
$type = (int)input('post.type');
$goodsType = (int)input('post.from',2);
if($goodsType<=0)$goodsType=2;
//mark 添加验证
//$m = new \addons\hyhsale\model\Hyhsale();
// if($type == 0 && model('\addons\hyhsale\model\Hyhsale')->getEffectiveGoods(['goodsId'=>$goodsId,'specsId'=>$goodsSpecId])){

View File

@ -201,7 +201,6 @@ class Shopping extends Base{
public function getGoods(){
$page = (int)input('page',1);
$type = (int)input('type',1);//1逛商都2助微吧
$scale = 0;
if(1 == $type){
$scale = dataConf('discountRateGtToShopping');
}elseif(2 == $type){