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

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

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