shish преди 3 години
родител
ревизия
d6fc358b01
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      app-hd/controllers/PartController.php

+ 2 - 2
app-hd/controllers/PartController.php

@@ -17,8 +17,8 @@ class PartController extends BaseController
 
     public function actionGetFullInfo()
     {
-        $id = Yii::$app->request->get('id', '');
-        $info = PartClass::getById($id, true);
+        $orderSn = Yii::$app->request->get('orderSn', '');
+        $info = PartClass::getByCondition(['orderSn' => $orderSn], true);
         if ($info->mainId != $this->mainId) {
             util::fail('没有权限');
         }