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