| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?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\mochat\MochatForm;
- /**
- * scrm
- */
- class MochatJob extends BaseObject implements JobInterface
- {
- public $id;
- public $in_action;
- public $start_id = 0;
- public $count = 1;
- public $upType = 0;
- public $store_id;
- public $type;
- public $saas_user_id;
- public $extData;
- public $queue_time;
- 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 executeSendMsg() {
- $v = microtime(true);
- echo '----executeSendMsg----' . $v;
- var_dump($this);
- $res = MochatForm::sendMsg($this->queue_time, $this->store_id, $this->type, $this->saas_user_id, $this->extData);
- echo '----executeSendMsg--end--' . $v;
- echo json_encode($res);
- }
- }
|