作者 Cool
1 个管道 的构建 失败 耗费 35 秒

取消业务员添加商品数量限制

@@ -102,10 +102,10 @@ class SalesmangoodsController extends WeChatBaseController{ @@ -102,10 +102,10 @@ class SalesmangoodsController extends WeChatBaseController{
102 102
103 if($this -> request -> isPost()){ 103 if($this -> request -> isPost()){
104 $uid = cmf_get_current_user_id(); 104 $uid = cmf_get_current_user_id();
105 - $salesman_goods = Db::name('goods') -> where("uid=".$uid." and type = 2") -> select();  
106 - if(count($salesman_goods)>=16){  
107 - return 3;  
108 - } 105 +// $salesman_goods = Db::name('goods') -> where("uid=".$uid." and type = 2") -> select();
  106 +// if(count($salesman_goods)>=16){
  107 +// return 3;
  108 +// }
109 if($_POST['money']>$_POST['price']){ 109 if($_POST['money']>$_POST['price']){
110 return 2; 110 return 2;
111 } 111 }