Browse Source

成本优化

unknown 1 tháng trước cách đây
mục cha
commit
862a6aee1e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/api/controller/CostCalculation.php

+ 1 - 1
application/api/controller/CostCalculation.php

@@ -21,7 +21,7 @@ class CostCalculation extends Api
      */
     public function calculate()
     {
-        if (Request::instance()->isPost() == false) {
+        if (Request::instance()->isGet() == false) {
             $this->error('非法请求');
         }