\WxappPlatform

Summary

Methods
Properties
Constants
__construct()
fetchSameAccountByAppid()
getComponentAccesstoken()
getPreauthCode()
getAuthInfo()
getAuthorizerInfo()
getAccessToken()
fetch_token()
getAuthLoginUrl()
getOauthCodeUrl()
getOauthUserInfoUrl()
getOauthInfo()
getJsApiTicket()
getJssdkConfig()
openPlatformTestCase()
result()
checkSign()
checkSignature()
checkIntoManage()
local_checkSignature()
local_decryptMsg()
buildSignature()
encryptMsg()
decryptMsg()
xmlDetract()
xmlExtract()
local_xmlExtract()
queryAvailableMessages()
queryAvailablePackets()
isMenuSupported()
menuCreate()
menuBuild()
menuDelete()
menuModify()
menuCurrentQuery()
menuQuery()
fansQueryInfo()
fansBatchQueryInfo()
fansAll()
queryBarCodeActions()
barCodeCreateDisposable()
barCodeCreateFixed()
changeSend()
getVailableAccessToken()
fetch_available_token()
clearAccessToken()
long2short()
fetchChatLog()
isTagSupported()
fansTagAdd()
fansTagFetchAll()
fansTagEdit()
fansTagDelete()
fansTagGetUserlist()
fansTagTagging()
fansTagBatchTagging()
fansTagBatchUntagging()
fansTagFetchOwnTags()
fansSendAll()
fansSendPreview()
sendCustomNotice()
sendTplNotice()
uploadMedia()
uploadMediaFixed()
editMaterialNews()
uploadNewsThumb()
uploadVideoFixed()
uploadVideo()
uploadNews()
addMatrialNews()
batchGetMaterial()
getMaterial()
downloadMedia()
getMaterialCount()
delMaterial()
changeOrderStatus()
getOauthUserInfo()
getOauthAccessToken()
getShareAddressConfig()
getFansStat()
getComment()
commentReply()
commentMark()
commentDelete()
commentReplyDelete()
commentSwitch()
getMaterialSupport()
__get()
create()
token()
createByUniacid()
includes()
getClassName()
fetchAccountInfo()
__toArray()
parse()
response()
errorCode()
pkcs7Encode()
getDailyVisitTrend()
$appid
$token
$encodingaeskey
$types
$uniacid
JSCODEURL
getAccountInfo()
request()
getAuthRefreshToken()
setAuthRefreshToken()
requestApi()
fetchDisplayUrl()
fetchCurrentUserRole()
fetchLogo()
fetchQrcode()
fetchSwitchUrl()
fetchOwner()
fetchStartTime()
fetchEndTime()
fetchGroups()
fetchSetting()
fetchGroupLevel()
fetchSetMeal()
fetchSameAccountExist()
supportOauthInfo()
supportJssdk()
$appsecret
$refreshtoken
$tablename
$menuFrame
$type
$typeName
$typeSign
$account
$owner
$groups
$setting
$startTime
$endTime
$groupLevel
$logo
$qrcode
$switchUrl
$displayUrl
$setMeal
$sameAccountExist
$typeTemplate
$supportVersion
$supportOauthInfo
$supportJssdk
$toArrayMap
$typeTempalte
N/A
encryptErrorCode()
$accountClassname
$accountObj
N/A

Constants

JSCODEURL

JSCODEURL = 'https://api.weixin.qq.com/sns/component/jscode2session?appid=%s&js_code=%s&grant_type=authorization_code&component_appid=%s&component_access_token=%s'

Properties

$appid

$appid : 

Type

$token

$token : 

Type

$encodingaeskey

$encodingaeskey : 

Type

$types

$types : 

Type

$uniacid

$uniacid : 

Type

$appsecret

$appsecret : 

Type

$refreshtoken

$refreshtoken : 

Type

$tablename

$tablename : 

Type

$menuFrame

$menuFrame : 

Type

$type

$type : 

Type

$typeName

$typeName : 

Type

$typeSign

$typeSign : 

Type

$account

$account : 

Type

$owner

$owner : 

Type

$groups

$groups : 

Type

$setting

$setting : 

Type

$startTime

$startTime : 

Type

$endTime

$endTime : 

Type

$groupLevel

$groupLevel : 

Type

$logo

$logo : 

Type

$qrcode

$qrcode : 

Type

$switchUrl

$switchUrl : 

Type

$displayUrl

$displayUrl : 

Type

$setMeal

$setMeal : 

Type

$sameAccountExist

$sameAccountExist : 

Type

$typeTemplate

$typeTemplate : 

Type

$supportVersion

$supportVersion : 

Type

$supportOauthInfo

$supportOauthInfo : 

Type

$supportJssdk

$supportJssdk : 

Type

$toArrayMap

$toArrayMap : 

Type

$typeTempalte

$typeTempalte : 

Type

$accountClassname

$accountClassname : 

Type

$accountObj

$accountObj : 

Type

Methods

__construct()

__construct(  $uniaccount = array()) 

Parameters

$uniaccount

fetchSameAccountByAppid()

fetchSameAccountByAppid(  $appid) 

Parameters

$appid

getComponentAccesstoken()

getComponentAccesstoken() 

getPreauthCode()

getPreauthCode() 

getAuthInfo()

getAuthInfo(  $code) 

Parameters

$code

getAuthorizerInfo()

getAuthorizerInfo(  $appid = '') 

Parameters

$appid

getAccessToken()

getAccessToken() 

fetch_token()

fetch_token() 

getAuthLoginUrl()

getAuthLoginUrl() 

getOauthCodeUrl()

getOauthCodeUrl(  $callback,   $state = '') 

Parameters

$callback
$state

getOauthUserInfoUrl()

getOauthUserInfoUrl(  $callback,   $state = '') 

Parameters

$callback
$state

getOauthInfo()

getOauthInfo(  $code = '') 

Parameters

$code

getJsApiTicket()

getJsApiTicket() 

getJssdkConfig()

getJssdkConfig(  $url = '') 

Parameters

$url

openPlatformTestCase()

openPlatformTestCase() 

result()

result(  $errno,   $message = '',   $data = '') 

Parameters

$errno
$message
$data

checkSign()

checkSign() 

checkSignature()

checkSignature(  $encrypt_msg) 

Parameters

$encrypt_msg

checkIntoManage()

checkIntoManage() 

local_checkSignature()

local_checkSignature(  $packet) 

Parameters

$packet

local_decryptMsg()

local_decryptMsg(  $postData) 

Parameters

$postData

buildSignature()

buildSignature(  $encrypt_msg) 

Parameters

$encrypt_msg

encryptMsg()

encryptMsg(  $text) 

Parameters

$text

decryptMsg()

decryptMsg(  $postData) 

Parameters

$postData

xmlDetract()

xmlDetract(  $data) 

Parameters

$data

xmlExtract()

xmlExtract(  $message) 

Parameters

$message

local_xmlExtract()

local_xmlExtract(  $message) 

Parameters

$message

queryAvailableMessages()

queryAvailableMessages() 

queryAvailablePackets()

queryAvailablePackets() 

isMenuSupported()

isMenuSupported() 

menuCreate()

menuCreate(  $menu) 

Parameters

$menu

menuBuild()

menuBuild(  $data_array,   $is_conditional = false) 

Parameters

$data_array
$is_conditional

menuDelete()

menuDelete(  $menuid) 

Parameters

$menuid

menuModify()

menuModify(  $menu) 

Parameters

$menu

menuCurrentQuery()

menuCurrentQuery() 

menuQuery()

menuQuery() 

fansQueryInfo()

fansQueryInfo(  $uniid,   $isOpen = true) 

Parameters

$uniid
$isOpen

fansBatchQueryInfo()

fansBatchQueryInfo(  $data) 

Parameters

$data

fansAll()

fansAll(  $startopenid = '') 

Parameters

$startopenid

queryBarCodeActions()

queryBarCodeActions() 

barCodeCreateDisposable()

barCodeCreateDisposable(  $barcode) 

Parameters

$barcode

barCodeCreateFixed()

barCodeCreateFixed(  $barcode) 

Parameters

$barcode

changeSend()

changeSend(  $send) 

Parameters

$send

getVailableAccessToken()

getVailableAccessToken() 

fetch_available_token()

fetch_available_token() 

clearAccessToken()

clearAccessToken() 

long2short()

long2short(  $longurl) 

Parameters

$longurl

fetchChatLog()

fetchChatLog(  $params = array()) 

Parameters

$params

isTagSupported()

isTagSupported() 

fansTagAdd()

fansTagAdd(  $tagname) 

Parameters

$tagname

fansTagFetchAll()

fansTagFetchAll() 

fansTagEdit()

fansTagEdit(  $tagid,   $tagname) 

Parameters

$tagid
$tagname

fansTagDelete()

fansTagDelete(  $tagid) 

Parameters

$tagid

fansTagGetUserlist()

fansTagGetUserlist(  $tagid,   $next_openid = '') 

Parameters

$tagid
$next_openid

fansTagTagging()

fansTagTagging(  $openid,   $tagids) 

Parameters

$openid
$tagids

fansTagBatchTagging()

fansTagBatchTagging(  $openid_list,   $tagid) 

Parameters

$openid_list
$tagid

fansTagBatchUntagging()

fansTagBatchUntagging(  $openid_list,   $tagid) 

Parameters

$openid_list
$tagid

fansTagFetchOwnTags()

fansTagFetchOwnTags(  $openid) 

Parameters

$openid

fansSendAll()

fansSendAll(  $group,   $msgtype,   $media_id) 

Parameters

$group
$msgtype
$media_id

fansSendPreview()

fansSendPreview(  $wxname,   $content,   $msgtype) 

Parameters

$wxname
$content
$msgtype

sendCustomNotice()

sendCustomNotice(  $data) 

Parameters

$data

sendTplNotice()

sendTplNotice(  $touser,   $template_id,   $postdata,   $url = '',   $topcolor = '#FF683F',   $miniprogram = array('appid' => '', 'pagepath' => '')) 

Parameters

$touser
$template_id
$postdata
$url
$topcolor
$miniprogram

uploadMedia()

uploadMedia(  $path,   $type = 'image') 

Parameters

$path
$type

uploadMediaFixed()

uploadMediaFixed(  $path,   $type = 'images') 

Parameters

$path
$type

editMaterialNews()

editMaterialNews(  $data) 

Parameters

$data

uploadNewsThumb()

uploadNewsThumb(  $thumb) 

Parameters

$thumb

uploadVideoFixed()

uploadVideoFixed(  $title,   $description,   $path) 

Parameters

$title
$description
$path

uploadVideo()

uploadVideo(  $data) 

Parameters

$data

uploadNews()

uploadNews(  $data) 

Parameters

$data

addMatrialNews()

addMatrialNews(  $data) 

Parameters

$data

batchGetMaterial()

batchGetMaterial(  $type = 'news',   $offset,   $count = 20) 

Parameters

$type
$offset
$count

getMaterial()

getMaterial(  $media_id,   $savefile = true) 

Parameters

$media_id
$savefile

downloadMedia()

downloadMedia(  $media_id,   $savefile = true) 

Parameters

$media_id
$savefile

getMaterialCount()

getMaterialCount() 

delMaterial()

delMaterial(  $media_id) 

Parameters

$media_id

changeOrderStatus()

changeOrderStatus(  $send) 

Parameters

$send

getOauthUserInfo()

getOauthUserInfo(  $accesstoken,   $openid) 

Parameters

$accesstoken
$openid

getOauthAccessToken()

getOauthAccessToken() 

getShareAddressConfig()

getShareAddressConfig() 

getFansStat()

getFansStat() 

getComment()

getComment(  $msg_data_id,   $index,   $type,   $begin,   $count = 50) 

Parameters

$msg_data_id
$index
$type
$begin
$count

commentReply()

commentReply(  $msg_data_id,   $user_comment_id,   $content,   $index) 

Parameters

$msg_data_id
$user_comment_id
$content
$index

commentMark()

commentMark(  $msg_data_id,   $user_comment_id,   $comment_type,   $index) 

Parameters

$msg_data_id
$user_comment_id
$comment_type
$index

commentDelete()

commentDelete(  $msg_data_id,   $user_comment_id,   $index) 

Parameters

$msg_data_id
$user_comment_id
$index

commentReplyDelete()

commentReplyDelete(  $msg_data_id,   $user_comment_id,   $index) 

Parameters

$msg_data_id
$user_comment_id
$index

commentSwitch()

commentSwitch(  $msg_data_id,   $need_open_comment,   $index) 

Parameters

$msg_data_id
$need_open_comment
$index

getMaterialSupport()

getMaterialSupport() 

__get()

__get(  $name) 

Parameters

$name

create()

create(  $acidOrAccount = array()) 

Parameters

$acidOrAccount

token()

token(  $type = 1) 

Parameters

$type

createByUniacid()

createByUniacid(  $uniacid) 

Parameters

$uniacid

includes()

includes(  $uniaccount) 

Parameters

$uniaccount

getClassName()

getClassName(  $filename) 

Parameters

$filename

fetchAccountInfo()

fetchAccountInfo() 

__toArray()

__toArray() 

parse()

parse(  $message) 

Parameters

$message

response()

response(  $packet) 

Parameters

$packet

errorCode()

errorCode(  $code,   $errmsg = '未知错误') 

Parameters

$code
$errmsg

pkcs7Encode()

pkcs7Encode(  $encrypt_data,   $iv) 

Parameters

$encrypt_data
$iv

getDailyVisitTrend()

getDailyVisitTrend(  $date) 

Parameters

$date

getAccountInfo()

getAccountInfo(  $acid) 

Parameters

$acid

request()

request(  $url,   $post = array()) 

Parameters

$url
$post

getAuthRefreshToken()

getAuthRefreshToken() 

setAuthRefreshToken()

setAuthRefreshToken(  $token) 

Parameters

$token

requestApi()

requestApi(  $url,   $post = '') 

Parameters

$url
$post

fetchDisplayUrl()

fetchDisplayUrl() 

fetchCurrentUserRole()

fetchCurrentUserRole() 

fetchLogo()

fetchLogo() 

fetchQrcode()

fetchQrcode() 

fetchSwitchUrl()

fetchSwitchUrl() 

fetchOwner()

fetchOwner() 

fetchStartTime()

fetchStartTime() 

fetchEndTime()

fetchEndTime() 

fetchGroups()

fetchGroups() 

fetchSetting()

fetchSetting() 

fetchGroupLevel()

fetchGroupLevel() 

fetchSetMeal()

fetchSetMeal() 

fetchSameAccountExist()

fetchSameAccountExist() 

supportOauthInfo()

supportOauthInfo() 

supportJssdk()

supportJssdk() 

encryptErrorCode()

encryptErrorCode(  $code) 

Parameters

$code