Your Name 2 年之前
父節點
當前提交
9aa642bdab
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/mshop/lib/Buy.php

+ 1 - 1
app/mshop/lib/Buy.php

@@ -337,7 +337,7 @@ class Buy
         $order_data['refund_cash'] = 0;
         $order_data['refund_p_cash'] = 0;
         $id = Dever::db('shop/buy_order')->insert($order_data);
-        if($id && $method && $method['method'] == 1){
+        if($id && isset($method) &&  $method && isset($method['method']) && $method['method'] == 1){
            if($method && isset($method['price']) && $method['price'] && $method['yue']>=0){
                 $shop = Dever::db('shop/info')->find($type_id);
                 $record = Dever::load('shop/lib/record')->pingtai($type_id,$shop['sid'],4,$id,$method['price'],$method['yue']);