dever 5 years ago
parent
commit
54fa67be45
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Wechat.php

+ 1 - 1
lib/Wechat.php

@@ -56,7 +56,7 @@ class Wechat extends Core
 	public function refund($order_id)
 	{
 		$info = Dever::db('pay/order')->one(array('order_id' => $order_id));
-		if ($info && $info['status'] <= 2) {
+		if ($info && ($info['status'] == 1 || $info['status'] == 2 || $info['status'] == 5)) {
 			$out_trade_no = $info['order_id'];
 			$info['cash'] = $info['cash'] * 100;
 			$total_fee = $info['cash'];