兼容修改
This commit is contained in:
25
app/queue/redis/UserPushQueue.php
Normal file
25
app/queue/redis/UserPushQueue.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace app\queue\redis;
|
||||
|
||||
use app\admin\controller\Cash;
|
||||
use app\api\model\UserMoney;
|
||||
use app\common\library\DatabaseRoute;
|
||||
use think\facade\Log;
|
||||
use think\queue\Job;
|
||||
use Webman\RedisQueue\Consumer;
|
||||
|
||||
/**
|
||||
* 奖项领取
|
||||
*/
|
||||
class UserPushQueue extends BaseQueue implements Consumer
|
||||
{
|
||||
public function run($data)
|
||||
{
|
||||
$userInfoList = $data['list'];
|
||||
foreach ($userInfoList as $userInfo) {
|
||||
Cash::send($userInfo, $data['title'], $data['content']);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user