| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- /**
- * 重庆赤晓店信息科技有限公司
- * https://www.chixiaodian.com
- * Copyright (c) 2023 赤店商城 All rights reserved.
- */
- namespace app\jobs\mochat;
- 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 SendMsgJob 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)
- {
- $_GET['md_id'] = 0;
- $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);
- }
- }
|