dever 3 years ago
parent
commit
3b8f902da9
2 changed files with 4 additions and 3 deletions
  1. 1 0
      app/shop/lib/Info.php
  2. 3 3
      app/shop/lib/Sell.php

+ 1 - 0
app/shop/lib/Info.php

@@ -38,6 +38,7 @@ class Info
         
         $type = Dever::input('type', 1);
         if (!$data) {
+            Dever::setInput('km', 2);
             if ($type == 1) {
                 # 获取平台店
                 $data = $this->fetch(false, $city, $lng, $lat, 10, $name, $method);

+ 3 - 3
app/shop/lib/Sell.php

@@ -751,9 +751,9 @@ class Sell
             $param['receipt'] = $receipt;
         }
 
-        //$result = Dever::load('pay/api.pay', $param);
-        $result['type'] = 'test';
-        $result['order'] = '';
+        $result = Dever::load('pay/api.pay', $param);
+        //$result['type'] = 'test';
+        //$result['order'] = '';
         if ($cart) {
             # 来自购物车,要清空一下
             $this->dropCart($cart, $uid, $goods, $shop['id']);