1.获取指定公众号信息
文件路径:/framework/class/account/account.class.php
$accountApi = WeAccount::create($_W['uniacid']);
$accountInfo = $accountApi->fetchAccountInfo();
2.获取指定公众号的各项设置参数
文件路径: /framework/class/account/account.class.php
$settings = fetchSetting($_W['uniacid'])
3.获取支付参数
uni_setting 文件路径:/framework/model/account.mod.php
$setting = uni_setting($_W['uniacid'], array('payment', 'creditbehaviors'));
4.获取公众号卡券cardticket
load()->classs('coupon');
$coupon = new coupon;
$card_ticket = $coupon->getCardTicket();
5.获取公众号access_token
$account_api = WeAccount::create();
$access_token = $account->getAccessToken();
6.获取公众号jsapi_ticket
$account_api = WeAccount::create();
$jsapi_ticket = $account_api->getJsApiTicket();
7.获取当前公众号下当前模块的操作员
module_clerk_info($module_name)
8.获取当前操作员的菜单权限
module_permission_fetch($module_name)
8.微站模板原理
/app/source/home/home.ctrl.phpr中的template("home/home)指向/app/common/template.func.php(template()),
“home/home”:指向模板目录 中的index.html