shish 1 年之前
父節點
當前提交
d5cba30285
共有 1 個文件被更改,包括 3 次插入0 次删除
  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) {
         if ($info->ghsShopId != $this->shopId) {
             util::fail('不是你的结账单');
             util::fail('不是你的结账单');
         }
         }
+        if ($info->status != 3) {
+            util::fail('结账单没有取消,不能退钱');
+        }
         $shop = $this->shop;
         $shop = $this->shop;
         $respond = ClearClass::refundMoney($shop, $info);
         $respond = ClearClass::refundMoney($shop, $info);
         $status = $respond['status'];
         $status = $respond['status'];