diff --git a/app/api/controller/PayController.php b/app/api/controller/PayController.php
index fa468d88b..bcff5cf6d 100644
--- a/app/api/controller/PayController.php
+++ b/app/api/controller/PayController.php
@@ -5,6 +5,7 @@ namespace app\api\controller;
 use app\common\enum\PayEnum;
 use app\common\logic\PayNotifyLogic;
 use app\common\model\retail\Cashierclass;
+use app\common\model\store_order\StoreOrder;
 use app\common\service\pay\PayService;
 use support\Cache;
 use support\Log;
@@ -49,6 +50,11 @@ class PayController extends BaseApiController
                 $ciphertext = $result->resource['ciphertext'];
                 if ($ciphertext['refund_status'] === 'SUCCESS') {
                     //处理订单  -1判断是退的一单还是拆分的订单
+                    $out_trade_no = $ciphertext['out_trade_no'].'-1';
+                    $check = StoreOrder::where('order_id',$out_trade_no)->count();
+                    if($check){
+                        $ciphertext['out_trade_no'] =$out_trade_no;
+                    }
                     PayNotifyLogic::handle('refund', $ciphertext['out_trade_no'], $ciphertext);
                     $app->wechat->success();