| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers;
- use app\models\Goods;
- use app\models\Option;
- use app\constants\OptionSetting;
- use app\models\ActivityRebateOrderN;
- use app\models\ActivityRebateOrderNLog;
- use app\modules\admin\models\ActivityRebateOrderNForm;
- class ActivityRebateOrderNController extends BaseController
- {
- public function actionTest()
- {
- $order_id = '6839';
- $res = ActivityRebateOrderNLog::priceInfoOrderId($order_id);
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 获取列表
- */
- public function actionList()
- {
- $form = new ActivityRebateOrderNForm();
- $form->store_id = get_store_id();
- $form->attributes = all_params();
- $res = $form->search();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 保存信息
- */
- public function actionSave()
- {
- $form = new ActivityRebateOrderNForm();
- $form->store_id = get_store_id();
- $form->attributes = all_params();
- $res = $form->save();
- return $this->asJson($res);
- }
- public function actionSaveKey()
- {
- $form = new ActivityRebateOrderNForm();
- $form->store_id = get_store_id();
- $form->attributes = all_params();
- $res = $form->saveKey();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 获取信息
- */
- public function actionGetInfo()
- {
- $form = new ActivityRebateOrderNForm();
- $form->store_id = get_store_id();
- $form->attributes = all_params();
- $res = $form->getInfo();
- return $this->asJson($res);
- }
- /**
- * @return \yii\web\Response
- * 修改状态
- */
- public function actionDel()
- {
- $form = new ActivityRebateOrderNForm();
- $form->attributes = all_params();
- $res = $form->del();
- return $this->asJson($res);
- }
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- public function actionLogList()
- {
- $form = new ActivityRebateOrderNForm();
- $form->status = get_params('status', -1);
- $form->activity_id = get_params('activity_id');
- $form->goods_name = get_params('goods_name');
- $form->user_name = get_params('user_name');
- $form->order_no = get_params('order_no');
- $form->store_id = get_store_id();
- $res = $form->logList();
- return $this->asJson($res);
- }
- }
|