|
|
@@ -0,0 +1,37 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace ghs\controllers;
|
|
|
+
|
|
|
+use bizGhs\book\classes\BookItemCustomClass;
|
|
|
+use bizGhs\book\classes\BookOnChangeClass;
|
|
|
+use bizGhs\book\classes\BookRoadChangeClass;
|
|
|
+use common\components\util;
|
|
|
+use Yii;
|
|
|
+
|
|
|
+class BookRoadChangeController extends BaseController
|
|
|
+{
|
|
|
+
|
|
|
+ public $guestAccess = [];
|
|
|
+
|
|
|
+ public function actionList()
|
|
|
+ {
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
+ $relateSecondId = $get['relateSecondId'] ?? 0;
|
|
|
+ $itemId = $get['itemId'] ?? 0;
|
|
|
+ $customId = $get['customId'] ?? 0;
|
|
|
+ $info = BookItemCustomClass::getById($relateSecondId, true);
|
|
|
+ if (empty($info)) {
|
|
|
+ util::fail('没有找到');
|
|
|
+ }
|
|
|
+ if ($info->mainId != $this->mainId) {
|
|
|
+ util::fail('不是你的哦');
|
|
|
+ }
|
|
|
+ $where = [];
|
|
|
+ $where['relateSecondId'] = $relateSecondId;
|
|
|
+ $where['customId'] = $customId;
|
|
|
+ $where['itemId'] = $itemId;
|
|
|
+ $respond = BookRoadChangeClass::getChangeList($where);
|
|
|
+ util::success($respond);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|