| 
														
															@@ -151,6 +151,7 @@ class Sell 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $info['status_name'] = $this->config['status'][$info['status']];
 
														 | 
														
														 | 
														
															         $info['status_name'] = $this->config['status'][$info['status']];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $info['method_name'] = $this->config['method'][$info['method']];
 
														 | 
														
														 | 
														
															         $info['method_name'] = $this->config['method'][$info['method']];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $info['pay_method_name'] = $this->config['pay_method'][$info['pay_method']];
 
														 | 
														
														 | 
														
															         $info['pay_method_name'] = $this->config['pay_method'][$info['pay_method']];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $info['pay_type_name'] = $this->config['pay_type'][$info['pay_type']];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if ($this->type == 1) {
 
														 | 
														
														 | 
														
															         if ($this->type == 1) {
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             if ($info['status'] == 2) {
 
														 | 
														
														 | 
														
															             if ($info['status'] == 2) {
 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -648,7 +649,13 @@ class Sell 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 $card_update['ddate'] = time();
 
														 | 
														
														 | 
														
															                 $card_update['ddate'] = time();
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 Dever::db('goods/card_code')->update($card_update);
 
														 | 
														
														 | 
														
															                 Dever::db('goods/card_code')->update($card_update);
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             }
 
														 | 
														
														 | 
														
															             }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        	return 'ok';
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        	return array
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            (
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                'order' => '',
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                'order_num' => $order_data['order_num'],
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                'order_id' => $id,
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                'type' => 'pay',
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            );
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }
 
														 | 
														
														 | 
														
															         }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $param = array
 
														 | 
														
														 | 
														
															         $param = array
 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -676,6 +683,8 @@ class Sell 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }
 
														 | 
														
														 | 
														
															         }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         # 使用优惠券
 
														 | 
														
														 | 
														
															         # 使用优惠券
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $this->useCoupon($coupon_id, $user_coupon_id);
 
														 | 
														
														 | 
														
															         $this->useCoupon($coupon_id, $user_coupon_id);
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $result['order_num'] = $order_data['order_num'];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $result['order_id'] = $id;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return $result;
 
														 | 
														
														 | 
														
															         return $result;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }
 
														 | 
														
														 | 
														
															     }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -742,7 +751,8 @@ class Sell 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         }
 
														 | 
														
														 | 
														
															         }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         $result = Dever::load('pay/api.pay', $param);
 
														 | 
														
														 | 
														
															         $result = Dever::load('pay/api.pay', $param);
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-
 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $result['order_num'] = $order_data['order_num'];
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        $result['order_id'] = $id;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         return $result;
 
														 | 
														
														 | 
														
															         return $result;
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }
 
														 | 
														
														 | 
														
															     }
 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
 
														 | 
														
														 | 
														
															 
 
														 |