31 lines
575 B
PHP
31 lines
575 B
PHP
<?php
|
|
|
|
namespace app\queue\redis;
|
|
|
|
|
|
use app\model\AlibabaSms;
|
|
use support\Log;
|
|
use support\think\Db;
|
|
use Webman\RedisQueue\Consumer;
|
|
|
|
// 申请新短信模版
|
|
class ApplySmsTemp implements Consumer
|
|
{
|
|
|
|
public $queue = 'apply.sms.temp';
|
|
|
|
public function consume($data)
|
|
{
|
|
Log::info('消息队列【申请新短信模版】接收到消息' . $data);
|
|
|
|
// 查询没有提交审核的模版
|
|
$temp_list = Db::table('sms_shop_template')->where(['shop_id' => 1, 'status' => 0])->select()->toArray();
|
|
if ($temp_list) {
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
} |