初始上传
This commit is contained in:
38
addon/weapp/config/diy_view.php
Executable file
38
addon/weapp/config/diy_view.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
return [
|
||||
|
||||
// 自定义模板页面类型,格式:[ 'title' => '页面类型名称', 'name' => '页面标识', 'path' => '页面路径', 'value' => '页面数据,json格式' ]
|
||||
'template' => [],
|
||||
|
||||
// 后台自定义组件——装修
|
||||
'util' => [],
|
||||
|
||||
// 自定义页面路径
|
||||
'link' => [],
|
||||
|
||||
// 自定义图标库
|
||||
'icon_library' => [],
|
||||
|
||||
// uni-app 组件,格式:[ 'name' => '组件名称/文件夹名称', 'path' => '文件路径/目录路径' ],多个逗号隔开,自定义组件名称前缀必须是diy-,也可以引用第三方组件
|
||||
'component' => [],
|
||||
|
||||
// uni-app 页面,多个逗号隔开
|
||||
'pages' => [],
|
||||
|
||||
// 模板信息,格式:'title' => '模板名称', 'name' => '模板标识', 'cover' => '模板封面图', 'preview' => '模板预览图', 'desc' => '模板描述'
|
||||
'info' => [],
|
||||
|
||||
// 主题风格配色,格式可以自由定义扩展,【在uni-app中通过:this.themeStyle... 获取定义的颜色字段,例如:this.themeStyle.main_color】
|
||||
'theme' => [],
|
||||
|
||||
// 自定义页面数据,格式:[ 'title' => '页面名称', 'name' => "页面标识", 'value' => [页面数据,json格式] ]
|
||||
'data' => []
|
||||
];
|
||||
63
addon/weapp/config/event.php
Executable file
63
addon/weapp/config/event.php
Executable file
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
// 事件定义文件
|
||||
return [
|
||||
'bind' => [
|
||||
|
||||
],
|
||||
|
||||
'listen' => [
|
||||
// 生成获取二维码
|
||||
'Qrcode' => [
|
||||
'addon\weapp\event\Qrcode'
|
||||
],
|
||||
// 开放数据解密
|
||||
'DecryptData' => [
|
||||
'addon\weapp\event\DecryptData'
|
||||
],
|
||||
// 获取手机号
|
||||
'PhoneNumber' => [
|
||||
'addon\weapp\event\PhoneNumber'
|
||||
],
|
||||
// 发货成功
|
||||
'OrderDeliveryAfter' => [
|
||||
'addon\weapp\event\OrderDeliveryAfter'
|
||||
],
|
||||
// 发货成功后小程序发货
|
||||
'OrderDeliveryAfterWeappDelivery' => [
|
||||
'addon\weapp\event\OrderDeliveryAfterWeappDelivery'
|
||||
],
|
||||
// 订单收货后执行事件(异步)
|
||||
'OrderTakeDeliveryAfter' => [
|
||||
'addon\weapp\event\OrderTakeDeliveryAfter'
|
||||
],
|
||||
/************************** 虚拟发货相关 *****************************/
|
||||
// 盲盒订单支付后
|
||||
'BlindboxOrderPay' => [
|
||||
'addon\weapp\event\BlindboxOrderPay'
|
||||
],
|
||||
// 礼品卡订单支付后
|
||||
'GiftCardOrderPay' => [
|
||||
'addon\weapp\event\GiftCardOrderPay'
|
||||
],
|
||||
// 充值订单支付后
|
||||
'MemberRechargeOrderPay' => [
|
||||
'addon\weapp\event\MemberRechargeOrderPay'
|
||||
],
|
||||
// 超级会员卡订单支付后
|
||||
'MemberLevelOrderPay' => [
|
||||
'addon\weapp\event\MemberLevelOrderPay'
|
||||
],
|
||||
// 积分兑换订单支付后
|
||||
'PointExchangeOrderPay' => [
|
||||
'addon\weapp\event\PointExchangeOrderPay'
|
||||
],
|
||||
// 小程序虚拟发货
|
||||
'WeappVirtualDelivery' => [
|
||||
'addon\weapp\event\WeappVirtualDelivery'
|
||||
],
|
||||
/************************** 虚拟发货相关 *****************************/
|
||||
],
|
||||
|
||||
'subscribe' => [
|
||||
],
|
||||
];
|
||||
20
addon/weapp/config/info.php
Executable file
20
addon/weapp/config/info.php
Executable file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/**
|
||||
* Niushop商城系统 - 团队十年电商经验汇集巨献!
|
||||
* =========================================================
|
||||
* Copy right 2019-2029 杭州牛之云科技有限公司, 保留所有权利。
|
||||
* ----------------------------------------------
|
||||
* 官方网址: https://www.niushop.com
|
||||
* =========================================================
|
||||
*/
|
||||
return [
|
||||
'name' => 'weapp',
|
||||
'title' => '微信小程序',
|
||||
'description' => '微信小程序功能',
|
||||
'type' => 'system', //插件类型 system :系统插件(自动安装), promotion:扩展营销插件 tool:工具插件
|
||||
'status' => 1,
|
||||
'author' => '',
|
||||
'version' => '5.5.3',
|
||||
'version_no' => '553250709001',
|
||||
'content' => '',
|
||||
];
|
||||
60
addon/weapp/config/menu_shop.php
Executable file
60
addon/weapp/config/menu_shop.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | 平台端菜单设置
|
||||
// +----------------------------------------------------------------------
|
||||
return [
|
||||
[
|
||||
'name' => 'WEAPP_ROOT',
|
||||
'title' => '微信小程序',
|
||||
'url' => 'weapp://shop/weapp/setting',
|
||||
'parent' => 'CHANNEL_ROOT',
|
||||
'picture_select' => '',
|
||||
'picture' => 'addon/weapp/shop/view/public/img/menu_icon/wechat_app_new.png',
|
||||
'picture_selected' => 'addon/weapp/shop/view/public/img/menu_icon/wechat_app_select.png',
|
||||
'is_show' => 1,
|
||||
'sort' => 4,
|
||||
'child_list' => [
|
||||
[
|
||||
'name' => 'WEAPP_CONFIG',
|
||||
'title' => '基础配置',
|
||||
'url' => 'weapp://shop/weapp/config',
|
||||
'is_show' => 0,
|
||||
'sort' => 2,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'WEAPP_PACKAGE',
|
||||
'title' => '小程序发布',
|
||||
'url' => 'weapp://shop/weapp/package',
|
||||
'is_show' => 0,
|
||||
'sort' => 3,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'WEAPP_PACKAGE',
|
||||
'title' => '订阅消息',
|
||||
'url' => 'weapp://shop/message/config',
|
||||
'is_show' => 0,
|
||||
'sort' => 4,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'WEAPP_PACKAGE_EDIT',
|
||||
'parent' => 'MESSAGE_LISTS',
|
||||
'title' => '编辑订阅消息',
|
||||
'url' => 'weapp://shop/message/edit',
|
||||
'is_show' => 0,
|
||||
'sort' => 1,
|
||||
'type' => 'button',
|
||||
],
|
||||
[
|
||||
'name' => 'WEAPP_SHARE',
|
||||
'title' => '小程序分享',
|
||||
'url' => 'weapp://shop/weapp/share',
|
||||
'is_show' => 0,
|
||||
'sort' => 6,
|
||||
'type' => 'button',
|
||||
]
|
||||
]
|
||||
]
|
||||
];
|
||||
26
addon/weapp/config/weapp_error.php
Executable file
26
addon/weapp/config/weapp_error.php
Executable file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
40001 => '获取 access_token 时 AppSecret 错误,或者 access_token 无效。请认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口',
|
||||
40002 => '不合法的凭证类型',
|
||||
40013 => '不合法的 AppID ,请检查 AppID 的正确性,避免异常字符,注意大小写',
|
||||
40014 => '不合法的 access_token ,请认真比对 access_token 的有效性',
|
||||
40029 => '无效的 oauth_code',
|
||||
40030 => '不合法的 refresh_token',
|
||||
40125 => '无效的appsecret',
|
||||
40132 => '微信号不合法',
|
||||
40164 => 'IP:' . request()->ip() . '未加入公众号ip白名单',
|
||||
41008 => '缺少 oauth code',
|
||||
41009 => '缺少 openid',
|
||||
42001 => 'access_token 超时,请检查 access_token 的有效期',
|
||||
42002 => 'refresh_token 超时',
|
||||
42003 => 'oauth_code 超时',
|
||||
43001 => '需要 GET 请求',
|
||||
43002 => '需要 POST 请求',
|
||||
43003 => '需要 HTTPS 请求',
|
||||
45011 => '频率限制,每个用户每分钟100次',// API 调用太频繁,请稍候再试
|
||||
48004 => 'api 接口被封禁,请登录 mp.weixin.qq.com 查看详情',
|
||||
48005 => 'api 禁止删除被自动回复和自定义菜单引用的素材',
|
||||
48006 => 'api 禁止清零调用次数,因为清零次数达到上限',
|
||||
40226 => '高风险等级用户,小程序登录拦截 。风险等级详见用户安全解方案',
|
||||
];
|
||||
Reference in New Issue
Block a user