where(['level'=>$level])->find(); if(empty($levelInfo)) return ['status'=>false,'info'=>'用户反佣比例获取失败']; return $levelInfo; } /** * 推送消息 * * @return void */ public function userPush($data){ if(!empty($data)){ $PushService = new PushService(); foreach($data as $info){ $user = $info['user']; if($user['push_cid'] == "") continue; $PushService->pushToSingleByCids($user['push_cid'],$info['title'],$info['body'],'intent','/pages/order/index'); } } } }