微擎 人人商城 对接京东vop 对接京东商品,同步商品 地址,库存,价格,上下架等。五 (下)京东后台提交订单,通知用户

匿名 (未验证) 提交于 2019-12-03 00:09:02

在selectJdOrder

发完货之后 通知 和 快递查询,都很正常

修改物流表

判断是不是京东物流信息

            if ($express=='VOP'){                 include_once EWEI_SHOPV2_PATH . 'jdvop/order/controller/Express.php';                 $res = new \jdvop_order\Express();                 $resarr = $res->getExpress($expresssn);                 if (is_array($resarr)){                     $info['data']=array_reverse($resarr);                  }else{                     $time=date('Y-m-d  h:i:s ');                     $info['data'][0]=['time'=>$time,                         'context'=>'未查询到物流信息,请稍后重试 (20001)'];                 };              }

send.html页面增加vop商品提示判断

{if  !empty($vopGoodsMsg)}                 <div class="form-group " style="color:#FF5722 ">  &nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp此订单含有VOP商品,若还有其他商品,请务必选择分包发货</div>                 <div class="form-group">                     <label class="col-sm-2 control-label ">快递名称</label>                     <div class="col-sm-3 col-xs-12">                         <input type="text" name="vopname" class="form-control" value="京东vop快递" />                     </div>                     <label class="col-sm-2 control-label ">快递单号</label>                     <div class="col-sm-5 col-xs-12">                         <input type="text" name="generalExpresssn" class="form-control" value="{$vopGoodsMsg}" />                     </div>                 </div>                 {/if}

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!