push(); $push_payload = $push_payload->setPlatform('all'); if(isset($param['mobile'])){$push_payload = $push_payload->addAlias(md5($param['mobile']));} $push_payload = $push_payload->addAllAudience(); $push_payload = $push_payload->setNotificationAlert($msg); try { $push_payload->send(); } catch (JPushMsg\Exceptions\APIConnectionException $e) { Log::info($e); return false; } catch (JPushMsg\Exceptions\APIRequestException $e) { Log::info($e); return false; } return true; } }