Constants

GET_ACCESS_TOKEN_URL

GET_ACCESS_TOKEN_URL = 'https://api.weixin.qq.com/cgi-bin/token'

GET_MATERIAL_URL

GET_MATERIAL_URL = 'https://api.weixin.qq.com/cgi-bin/material/batchget_material?access_token=%s'

GET_MATERIAL_COUNT_URL

GET_MATERIAL_COUNT_URL = 'https://api.weixin.qq.com/cgi-bin/material/get_materialcount'

SAVE_LOCAL_PIC_PATH

SAVE_LOCAL_PIC_PATH = 'static_files/wximages/zhanxin/'

ACCESS_TOKEN_CACHE_KEY

ACCESS_TOKEN_CACHE_KEY = 'wx_access_token'

Properties

$httpService

$httpService : 

Type

$appId

$appId : 

Type

$secret

$secret : 

Type

Methods

getZhanxinArticlesList()

getZhanxinArticlesList(\App\Services\int  $page, \App\Services\int  $pageSize) 

Parameters

\App\Services\int $page
\App\Services\int $pageSize

fetchArticles()

fetchArticles(\App\Services\int  $page, \App\Services\int  $pageSize) 

Parameters

\App\Services\int $page
\App\Services\int $pageSize

fetchArticlesCount()

fetchArticlesCount() 

fetchAccessToken()

fetchAccessToken() 

formatWxArticles()

formatWxArticles(  $articles,   $page,   $pageSize) 

Parameters

$articles
$page
$pageSize

saveWxPic()

saveWxPic(\App\Services\string  $url) 

Parameters

\App\Services\string $url

getWxPicFileName()

getWxPicFileName(\App\Services\string  $url) 

Parameters

\App\Services\string $url