\app\wechat\serviceFansService

微信粉丝数据服务 Class FansService

Summary

Methods
Properties
Constants
set()
get()
sync()
syncBlack()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

set()

set(array  $user) : boolean

增加或更新粉丝信息

Parameters

array $user

Throws

\think\Exception
\think\exception\PDOException

Returns

boolean

get()

get(string  $openid) : array

获取粉丝信息

Parameters

string $openid

Throws

\think\Exception
\think\exception\PDOException

Returns

array

sync()

sync(string  $next_openid = '') : boolean

同步所有粉丝记录

Parameters

string $next_openid

Throws

\WeChat\Exceptions\InvalidResponseException
\WeChat\Exceptions\LocalCacheException
\think\Exception
\think\exception\PDOException

Returns

boolean

syncBlack()

syncBlack(string  $next_openid = '') : boolean

同步获取黑名单信息

Parameters

string $next_openid

Throws

\WeChat\Exceptions\InvalidResponseException
\WeChat\Exceptions\LocalCacheException
\think\Exception
\think\exception\PDOException

Returns

boolean