|
@@ -30,14 +30,14 @@ class PushService
|
|
|
*/
|
|
|
public static function setUserRegId($uid, string $regId, string $provider, string $package): bool
|
|
|
{
|
|
|
- myLog('push')->info('setUserRegId', compact('uid', 'regId', 'provider', 'package'));
|
|
|
-
|
|
|
// push服务商(转小写)
|
|
|
$provider = strtolower($provider);
|
|
|
- if (empty($uid) || empty($regId) || empty($package) || empty($provider)) {
|
|
|
+ if (empty($uid) || empty($regId) || empty($package) || empty($provider) || $package !== 'com.app.kyy.xnyd') {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
+ myLog('push')->info('setUserRegId', compact('uid', 'regId', 'provider', 'package'));
|
|
|
+
|
|
|
// 获取缓存
|
|
|
$userCacheRegId = PushCache::getUserPushRegId($uid);
|
|
|
if ($regId === $userCacheRegId) {
|