当前位置: 首页 > news >正文

wordpress主题制作全过程合肥seo建站

wordpress主题制作全过程,合肥seo建站,山西企业建站系统平台,公众号网页制作模板问题: 当商品设置限购为 1 时,够买数量未超过限购,但是还是提示超出限购数量 修复方法: 修改代码路径: app\common\repositories\store\order\StoreOrderCreateRepository.php 修改代码一: i s p a y s a r r a y u n i q u e ( a r r a y c o l u m n ( is_pays array_un…问题: 当商品设置限购为 1 时,够买数量未超过限购,但是还是提示超出限购数量 修复方法: 修改代码路径: app\common\repositories\store\order\StoreOrderCreateRepository.php 修改代码一: i s p a y s a r r a y u n i q u e ( a r r a y c o l u m n ( is_pays array_unique(array_column( isp​aysarrayu​nique(arrayc​olumn(merchantCart[‘list’],‘is_pay’)); if ( count($is_pays) 1 || $is_pays[0] 1) throw new ValidateException(‘存在已购买商品请重新添加购物车’); // 获取每个商品的ID数组 p r o d u c t i d s a r r a y c o l u m n ( product_ids array_column( producti​dsarrayc​olumn(merchantCart[‘list’],‘product_id’); n u m d a t a a r r a y c o l u m n ( num_data array_column( numd​ataarrayc​olumn(merchantCart[‘list’],‘cart_num’); i d n u m [ ] ; / / 获取每个商品 I D 出现的次数及购买数量作为验证限购数量使用 f o r e a c h ( id_num []; // 获取每个商品ID出现的次数及购买数量作为验证限购数量使用 foreach ( idn​um[];//获取每个商品ID出现的次数及购买数量作为验证限购数量使用foreach(product_ids as $key $value) { i d n u m [ id_num[ idn​um[value] isset( i d n u m [ id_num[ idn​um[value]) ? i d n u m [ id_num[ idn​um[value] n u m d a t a [ num_data[ numd​ata[key] : n u m d a t a [ num_data[ numd​ata[key]; } c o u n t L i s t c o u n t ( countList count( countListcount(merchantCart[‘list’]); 修改后的样子: 修改代码二: $count i d n u m [ id_num[ idn​um[cart[‘product_id’]]; if (($count) $cart[‘product’][‘once_max_count’]) { throw new ValidateException(‘[超出限购总数’ . c a r t [ ′ p r o d u c t ′ ] [ ′ o n c e m a x c o u n t ′ ] . ′ ] ′ . m b s u b s t r ( cart[product][once_max_count] . ] . mb_substr( cart[′product′][′oncem​axc​ount′].′]′.mbs​ubstr(cart[‘product’][‘store_name’], 0, 10) . ‘…’); } $pay_count s t o r e O r d e r R e p o s i t o r y − g e t M a x C o u n t N u m b e r ( storeOrderRepository-getMaxCountNumber( storeOrderRepository−getMaxCountNumber(cart[‘uid’], c a r t [ ′ p r o d u c t i d ′ ] ) ; i f ( ( cart[product_id]); if (( cart[′producti​d′]);if((count $pay_count) $cart[‘product’][‘once_max_count’]) { throw new ValidateException(‘[超出限购总数’ . c a r t [ ′ p r o d u c t ′ ] [ ′ o n c e m a x c o u n t ′ ] . ′ ] ′ . m b s u b s t r ( cart[product][once_max_count] . ] . mb_substr( cart[′product′][′oncem​axc​ount′].′]′.mbs​ubstr(cart[‘product’][‘store_name’], 0, 10) . ‘…’); } 修改后的样子: 最后:修改完了需要重启swoole服务
http://www.hkea.cn/news/14346653/

相关文章:

  • 温州网站改版公司百度风云榜小说排行榜
  • 网站空间没有续费form e哪个网站做
  • 井陉县城乡建设局网站广西城乡和建设厅网站
  • wordpress 页面 分类目录东莞百度提升优化
  • 广西网站建设贵吗我是新手如何做电商
  • 高仿酒网站怎么做网络营销策划案模板
  • 网站建设的维护范围wordpress菜单注册
  • 企业网站建设的收获福建住房与城乡建设网站
  • 银川市住房和城乡建设厅网站高邮城乡建设局网站
  • 二级黄冈站wordpress搭建博客 简书
  • 北京网站设计公司兴田德润简介泰安网络优化公司
  • 在哪个网站可做网络夫妻遂昌赶街网站
  • 阿里云域名续费网站wordpress页面的添加背景音乐
  • Hdi做指数网站wordpress重复链接
  • win2008 挂网站 404万网阿里云域名查询
  • 备案个人可以做视频网站吗wordpress 制作网站模板
  • 网站需要收集什么建站资源徐州市建设局网站
  • 网站改版 信科网络在线咨询妇科医生免费
  • 网站做的支付宝接口设计网站大全软件
  • 莆田网站建设团队南京公司网站制作教育培训
  • 建设部网站监理工程师报名html网页制作锚点链接
  • 网站建设便宜的公司哪家好自己做网站难不难
  • 个人网站建设报价宁波网站建设费用
  • 做头像网站静态上海网站制作找缘魁
  • 电话怎么做网站推广网站源码 照明
  • 设计网站首页多少钱郑州市网站
  • thinkphp做双语网站建设云个人网站
  • 太原营销网站建设制作平台企业微信邮箱怎么开通注册
  • 网站建设协议书 保密条款编程网课平台哪个好
  • 个人网站怎么填写网站建设需要版块