| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\jobs;
- use yii\base\BaseObject;
- use yii\queue\JobInterface;
- use app\modules\admin\models\wechat_mp\CardForm;
- use app\modules\admin\models\jushuitan\JuShuiTanForm;
- /**
- * 店铺复制-聚水潭
- */
- class JuShuiTanJob extends BaseObject implements JobInterface
- {
- public $id;
- public $in_action;
- public $start_id = 0;
- public $count = 1;
- public $upType = 0;
- public function execute($queue)
- {
- debug_log(__METHOD__ . '~~~~~~~~已弃用~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
- throw new \Exception(__METHOD__ . '~~~~~~~~已弃用~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');
- return;
- $_GET['md_id'] = 0;
- if($this->in_action){
- $action = $this->in_action;
- $this->$action();
- }
- }
- public function executeGoods2JST() {
- echo '----executeGoods2JST----' . $this->start_id;
- $res = JuShuiTanForm::goods2JST($this->id, $this->start_id, $this->count, $this->upType);
- echo '----executeGoods2JST--end--' . $this->start_id;
- echo json_encode($res);
- }
- public function executeCat2JST() {
- echo '----executeCat2JST----' . $this->start_id;
- $res = JuShuiTanForm::cat2Jst($this->id, $this->start_id, $this->count);
- echo '----executeCat2JST--end--' . $this->start_id;
- echo json_encode($res);
- }
- public function executeOrder2JST() {
- echo '----executeOrder2JST----' . $this->start_id;
- $res = JuShuiTanForm::order2Jst($this->id, $this->start_id, $this->count);
- echo '----executeOrder2JST--end--' . $this->start_id;
- echo json_encode($res);
- }
- }
|