shish 1 year ago
parent
commit
d5cba30285
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app-ghs/controllers/ClearController.php

+ 3 - 0
app-ghs/controllers/ClearController.php

@@ -24,6 +24,9 @@ class ClearController extends BaseController
         if ($info->ghsShopId != $this->shopId) {
             util::fail('不是你的结账单');
         }
+        if ($info->status != 3) {
+            util::fail('结账单没有取消,不能退钱');
+        }
         $shop = $this->shop;
         $respond = ClearClass::refundMoney($shop, $info);
         $status = $respond['status'];