| 1234567891011121314151617181920212223242526 |
- <?php
- namespace ghs\controllers;
- use bizGhs\item\classes\PriceChangeClass;
- use bizGhs\product\classes\ProductClass;
- use common\components\util;
- use Yii;
- class PriceChangeController extends BaseController
- {
- public function actionList()
- {
- $get = Yii::$app->request->get();
- $id = $get['id'] ?? 0;
- $product = ProductClass::getById($id, true);
- if ($product->mainId != $this->mainId) {
- util::fail('没有权限');
- }
- $where = ['itemId' => $id];
- $list = PriceChangeClass::getChangeList($where);
- util::success($list);
- }
- }
|