dever 5 years ago
parent
commit
cdc72ffcd4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      lib/Core.php
  2. 1 1
      lib/Wechat.php

+ 1 - 1
lib/Core.php

@@ -10,7 +10,7 @@ class Core
 	{
 		$db = Dever::db('pay/order');
 		$info = $db->one(array('order_id' => $order_id, 'rand' => time() . rand(1,1000)));
-		if ($info && $info['status'] == 1) {
+		if ($info && $info['status']) {
 			$param['where_id'] = $info['id'];
 			$param['status'] = 2;
 			$msg = '支付成功';

+ 1 - 1
lib/Wechat.php

@@ -38,7 +38,7 @@ class Wechat extends Core
 		$input = new \WxPayOrderQuery();
 		$input->SetOut_trade_no($order_id);
 		$result = \WxPayApi::orderQuery($this->config, $input);
-		print_r($result);die;
+
 		if (isset($result['transaction_id']) && isset($result['out_trade_no']) && isset($result['trade_state_desc'])) {
 			$this->updateOrder($result['out_trade_no'], $result['cash_fee']);
 		}