27 lines
477 B
PHP
27 lines
477 B
PHP
<?php
|
|
|
|
|
|
namespace app\api\behavior;
|
|
|
|
use app\common\model\FriendNotification;
|
|
|
|
class FriendNotifications
|
|
{
|
|
public function run(&$params)
|
|
{
|
|
return true;
|
|
}
|
|
/*
|
|
* 同步会员
|
|
*/
|
|
public function addFriendNotifications(&$params){
|
|
|
|
FriendNotification::createFriendRequestNotification($params);
|
|
}
|
|
|
|
|
|
public function handleFriendNotifications(&$params){
|
|
|
|
FriendNotification::createRequestResultNotification($params);
|
|
}
|
|
} |