|
|
@@ -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('没有权限');
|
|
|
}
|