Przeglądaj źródła

修改考核优化

qiuenguang 1 rok temu
rodzic
commit
c98c132155
1 zmienionych plików z 3 dodań i 3 usunięć
  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('参数不能为空');
         }