shish 3 лет назад
Родитель
Сommit
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('没有权限');
         }