moonsflyer vor 8 Monaten
Ursprung
Commit
9fd5852240

+ 4 - 4
app/adminapi/controller/agricultural_machinery/SupplyDemandController.php

@@ -74,19 +74,19 @@ class SupplyDemandController extends BaseAdminController
 
 
     /**
-     * @notes  更改服务商状态
+     * @notes  更改供需状态
      * @return \think\response\Json
      * @author heshihu
      * @date 2022/2/21 10:15
      */
     public function updateStatus()
     {
-        $params = (new UserServiceValidate())->post()->goCheck('status');
-        $result = UserServiceLogic::updateStatus($params);
+        $params = (new SupplyDemandValidate())->post()->goCheck('status');
+        $result = SupplyDemandLogic::updateStatus($params);
         if (true === $result) {
             return $this->success('修改成功', [], 1, 1);
         }
-        return $this->fail(UserServiceLogic::getError());
+        return $this->fail(SupplyDemandLogic::getError());
     }
 
 

+ 1 - 1
app/adminapi/logic/agricultural_machinery/SupplyDemandLogic.php

@@ -66,7 +66,7 @@ class SupplyDemandLogic extends BaseLogic
      */
     public static function updateStatus(array $params)
     {
-        UserService::update([
+        SupplyDemandInfo::update([
             'id' => $params['id'],
             'status' => $params['status']
         ]);