| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2019/5/21
- * Time: 16:57
- */
- namespace app\logic\cmdpro;
- use app\lib\DataPack;
- use app\logic\cmdpro\CmdInf as CmdInf;
- class CmdSubser extends CmdInf
- {
- public function index_msg($serv, $task)
- {
- go(function()use($serv,$task){
- $pack = json_decode($task->data->data, true);
- $msgarr = $pack['data'];
- if (!is_array($msgarr)){
- return ;
- }
- foreach ($msgarr as $msg){
- $msg = DataPack::toJson(['mtype'=>'system_msg','stype'=>'index_msg','data'=>$msg]);
- $this->onlineBroad($serv, $msg );
- }
- });
- }
- }
|