Pārlūkot izejas kodu

修改考核优化

qiuenguang 1 gadu atpakaļ
vecāks
revīzija
c98c132155
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      application/api/controller/OrderSuperLoss.php

+ 3 - 3
application/api/controller/OrderSuperLoss.php

@@ -854,10 +854,10 @@ class OrderSuperLoss extends Api
      * @params array data
     */
     public function updateOrderYj(){
-        if (Request::instance()->isPost() == false) {
-            $this->error('非法请求');
+        if ($this->request->isGet() === false){
+            $this->error('请求错误');
         }
-        $params = Request::instance()->request();
+        $params = $this->request->get();
         if (!isset($params['order'])){
             $this->error('参数不能为空');
         }