|
@@ -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']);
|