作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

合并分支 'liuzhen' 到 'master'

Liuzhen



查看合并请求 !150
@@ -142,7 +142,7 @@ class SalesmanController extends AdminBaseController{ @@ -142,7 +142,7 @@ class SalesmanController extends AdminBaseController{
142 $this -> error('佣金不能大于售价'); 142 $this -> error('佣金不能大于售价');
143 } 143 }
144 $goods_data = Db::name('goods') -> where('uid',$_POST['uid']) -> select() -> toArray(); 144 $goods_data = Db::name('goods') -> where('uid',$_POST['uid']) -> select() -> toArray();
145 - if(count($goods_data) >= 8){ 145 + if(count($goods_data) >= 16){
146 $this -> error('添加失败'); 146 $this -> error('添加失败');
147 }else{ 147 }else{
148 if(!empty($_POST['det_img'])){ 148 if(!empty($_POST['det_img'])){
@@ -608,7 +608,7 @@ @@ -608,7 +608,7 @@
608 if(book_name!=""&&money!=""&&price!=""&&book_size!=""&&suit!=""&&grade!=""&&(img0!=""||img1!=""||img2!="")&&zixun_phone!=""){ 608 if(book_name!=""&&money!=""&&price!=""&&book_size!=""&&suit!=""&&grade!=""&&(img0!=""||img1!=""||img2!="")&&zixun_phone!=""){
609 $.post("{:url('Salesmangoods/Salesman_goods_add')}",{show_img:show_img,thumbnail:thumbnail,book_name:book_name,money:money,price:price,pricing:pricing,instr:instr,book_number:book_number,paper:paper,book_size:book_size,binding:binding,author:author,press:press,press_time:press_time,suit:suit,grade:grade,img0:img0,img1:img1,img2:img2,printing:printing,zixun_phone:zixun_phone},function(data){ 609 $.post("{:url('Salesmangoods/Salesman_goods_add')}",{show_img:show_img,thumbnail:thumbnail,book_name:book_name,money:money,price:price,pricing:pricing,instr:instr,book_number:book_number,paper:paper,book_size:book_size,binding:binding,author:author,press:press,press_time:press_time,suit:suit,grade:grade,img0:img0,img1:img1,img2:img2,printing:printing,zixun_phone:zixun_phone},function(data){
610 if(data == 3){ 610 if(data == 3){
611 - alert('添加失败,业务员书籍不能超过8本'); 611 + alert('添加失败,业务员书籍不能超过16本');
612 }else if(data == 2){ 612 }else if(data == 2){
613 alert('佣金不能大于售价'); 613 alert('佣金不能大于售价');
614 }else{ 614 }else{