瀏覽代碼

Merge branch 'master' of http://git.huxiukeji.com/lizhen/xiaoshan

Panda 3 月之前
父節點
當前提交
0c86c14934
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      addons/shopro/controller/order/Express.php

+ 3 - 1
addons/shopro/controller/order/Express.php

@@ -16,7 +16,9 @@ class Express extends Common
     public function index()
     {
         $user = auth_user();
-        $order_id = $this->request->param('order_id');
+        $order_sn = $this->request->param('order_sn');
+
+        $order_id = Db::name('shopro_order')->where('order_sn',$order_sn)->value('id');
 
         // 更新包裹信息(5分钟缓存)
         (new ExpressLib)->updateOrderExpress($order_id);