idoubi / douchat Goto Github PK
View Code? Open in Web Editor NEW简洁、高效的微信开发框架。
Home Page: http://www.douchat.net
License: Other
简洁、高效的微信开发框架。
Home Page: http://www.douchat.net
License: Other
在使用common_lists()里的setListSearch()时,点击搜索会跳转到index.php?s=/Mp/Index/index而不是插件 的位置。代码如下
public function lists()
{
$this->setModel('wang_actor_manage')
->setListMap(array('mpid'=>get_mpid()))
->setListOrder('ctime desc')
->setListSearch(array(
'name' => '名字'
))
->addListItem('openid', '艺人头像', 'function', array('function_name'=>'get_fans_headimg'))
->addListItem('openid', '艺人昵称', 'function', array('function_name'=>'get_fans_nickname'))
->addListItem('status', '状态', 'enum', array('options'=>array(0=>'取消关注',1=>'已关注',2=>'预约面试',3=>'进行试播',4=>'签约成功')))
->addListItem('name', '名字')
->addListItem('phone', '电话')
->addListItem('money', '本月收入')
->addListItem('agent', '经纪人昵称', 'function', array('function_name'=>'get_fans_nickname'))
->addListItem('agent', '经纪人头像', 'function', array('function_name'=>'get_fans_headimg'))
->addListItem('ctime', '加入时间', 'function', array('function_name'=>'date','params'=>'Y-m-d H:i:s,###'))
->addListItem('utime', '最后更新时间', 'function', array('function_name'=>'date','params'=>'Y-m-d H:i:s,###'))
->addListItem('id', '操作', 'custom', array(
'options' => array(
array(
'title' => '更新状态',
'url' => U('/addon/wangActorManage/web/update', array('id'=>'{id}')),
'class' => 'btn btn-primary btn-sm'
)
)
))
->setListPer(8)
->common_lists();
}
App\Mp\Behavior\ImportJsBehavior.class.php
App\Mp\Behavior\ImportCssBehavior.class.php
里面引用 Public 下面的 js 和 css 文件都是直接写了 '/Public/Common/js/' 和 '/Public/Common/css/' 路径
应该改写成
ROOT . '/Public/Common/js/' 和
ROOT . '/Public/Common/css/'
补充:
App\Mp\Behavior\JssdkBehavior.class.php
jssdk.js 引入也有类似问题,
关于加入七牛储存的建议
建议加入七牛储存,设置开关供用户选择是否开启七牛储存,开启则需要填写相关参数,
这个项目停止更新了吗?好久没看到更新内容了!
数字0不能回复,其它数字可以
通用模板目前仅支持单图上传控件,需要开发多图上传控件和多图选择控件
dc_mp_fans
CREATE TABLE IF NOT EXISTS dc_mp_fans
(
id
int(10) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '自增ID',
mpid
int(10) NOT NULL COMMENT '公众号标识',
openid
varchar(255) NOT NULL unique COMMENT '粉丝标识',
is_subscribe
tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否关注',
subscribe_time
int(10) DEFAULT NULL COMMENT '关注时间',
unsubscribe_time
int(10) DEFAULT NULL COMMENT '取消关注时间',
nickname
varchar(50) DEFAULT NULL COMMENT '粉丝昵称',
sex
tinyint(1) DEFAULT NULL COMMENT '粉丝性别',
headimgurl
varchar(255) DEFAULT NULL COMMENT '粉丝头像',
relname
varchar(50) DEFAULT NULL COMMENT '真实姓名',
signature
text COMMENT '个性签名',
mobile
varchar(15) DEFAULT NULL COMMENT '手机号',
is_bind
tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否绑定',
language
varchar(50) DEFAULT NULL COMMENT '使用语言',
country
varchar(50) DEFAULT NULL COMMENT '国家',
province
varchar(50) DEFAULT NULL COMMENT '身份',
city
varchar(50) DEFAULT NULL COMMENT '城市',
remark
varchar(50) DEFAULT NULL COMMENT '备注',
groupid
int(10) DEFAULT NULL COMMENT '分组ID',
tagid_list
varchar(255) DEFAULT NULL COMMENT '标签',
score
int(10) DEFAULT '0' COMMENT '积分',
money
int(10) DEFAULT '0' COMMENT '金钱',
latitude
varchar(50) DEFAULT NULL COMMENT '纬度',
longitude
varchar(50) DEFAULT NULL COMMENT '经度',
location_precision
varchar(50) DEFAULT NULL COMMENT '精度'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='公众号粉丝表'
时间: 0s
$data = I('post.');
$data['is_bind'] = 1;
$res = M('mp_fans')->where(array('openid'=>get_openid()))->save($data);
代码中直接将用户提交数据保存,并且数据表中有敏感money字段。可导致money字段任意修改。
建议销毁$data 数据中非所需字段。
项目核心文件里 function.php函数,使用这个函数create_addon_url返回失效,但我修改后了return值后,就可使用
return U('/addon/'.get_addon().'/'.$act.'/'.$url.'@'.C('HTTP_HOST'), $param); // 原代码
return U('/addon/'.get_addon().'/'.$act.'/'.$url, $param); //修改后代码
大量开发者提到需要拉取微信端素材
自定义菜单需要支持跳转小程序~~~~
例如留言板,放到新版本豆信里有错误。
自动回复内容不能正常删除
mp_rule 内的关键词被删除
但是
mp_material 的关键词内容没有正常呗删除
现在使用的php-wechat-sdk经常会出现access_token过期问题,需要找到问题的原因并进行优化,考虑要不要把微信sdk换成EasyWechat
2.upupw apche + php5.6 集成包环境下, 安装无法正常完成,总是退回到数据库参数设置页面
addButton 的 $url
addListItem 的 $format 和 $extra
首次安装这几块会报一堆bug……
These vulnerabilities were posted to CNVD, for your information. I have no knowledge of the details, but wanted to let you know.
https://www.cnvd.org.cn/flaw/show/CNVD-2021-03466
https://www.cnvd.org.cn/flaw/show/CNVD-2021-03467
https://www.cnvd.org.cn/flaw/show/CNVD-2021-03469
https://www.cnvd.org.cn/flaw/show/CNVD-2021-03475
https://www.cnvd.org.cn/flaw/show/CNVD-2021-03476
建议在各个信息列表增加批量删除功能,
通用列表模板需要增加批量选择并进行相关操作功能
ue上传图片亦存在图样问题。
如:公众号-编辑公众号-选择图片- 卡住3~·10S
解决方法:以下代码中 image/* 改为 image/gif,image/jpeg,image/png,image/jpg,image/bmp
参考:https://www.lijiangtv.com/home.php?mod=space&uid=1&do=blog&id=11890
关闭调试模式,无法访问插件!
使用日期时间控件增加豆信封装的通用模板,可以在控制器中通过addFormField('name','title','date')
或者addFormField('name','title','time')
进行调用
关于关闭调试模式,出现无法进入插件管理的问题
当关闭调试模式时,没出现错误,开启调试模式就没问题。
修复JSAPI支付过程中可能遇到的数据篡改问题,提高安全性
请问http://localhost/addon/Demo/api/getSettings/mpid/4 404错误这个是什么原因
比如,有的图片,我需要看到它但是不希望修改,可以放大查看。
通用模型可以加上鼠标放到图片放大效果
认证服务号第一次使用时无法自动同步粉丝列表
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.