| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\modules\admin\controllers\givingGifts;
- use app\modules\admin\models\givingGifts\GivingGiftsForm;
- class GivingGiftsController extends BaseController {
- public function actionTest() {
- $id = '14729';
- GivingGiftsForm::orderReceivedTimeoutRefund(\app\models\Order::findOne($id));
- }
- public function actionConf() {
- $conf = GivingGiftsForm::conf(get_store_id());
- return $this->asJson([
- 'code' => 0,
- 'data' => $conf,
- ]);
- }
- public function actionConfSave() {
- GivingGiftsForm::confSave(get_store_id(), input_params('conf'));
- return $this->asJson([
- 'code' => 0,
- 'msg' => 'ok',
- ]);
- }
- public function actionConfGoodsSave() {
- $res = GivingGiftsForm::confGoodsSave(get_store_id(), input_params('goodsIds', []), input_params('del', 0));
- return $this->asJson($res);
- }
- }
|