1、提示错误码10003
由于没有重新安装,猜测是因为数据库中的域名和访问的域名不一致,排查没有结果,百度得知需要配置页面接口的地址,订阅号没有这个接口权限,需要正确设置公众号类型为订阅号即可。
还不行的话,修改公众号设置-》功能设置-》JS接口安全域名
2、配置安全域名 提示 找不到微信授权txt文件
确认解析IP,之后确认修改了nginx/apache配置后重启了服务器
3、配置js安全域名、appid、服务器地址,上传图片失败,原因是没有配置IP白名单,获取access_token需要该地址验证
签名不对,刷新后有时正常,
1、可能缓存问题,插件刷新和后台刷新,更变位mysql都无用 \app\common\common.func.php
2、尝试跟踪缓存异常的代码 D:\360极速浏览器下载\微擎1.73纯净版 系统卡券\微擎1.73纯净版\framework\class\weixin.platform.class.php
//载入日志函数
load()->func('logging');
//记录文本日志
logging_run('记录字符串日志数据');
3、登录微信公众号后台,发现错误提示,IP不在白名单中,你妹的 安全中心->IP白名单
4、投票系统升级记录
操作员只能操作自己的活动,
1.0、 数据库的reply表增加createUserId字段
1.1、用户权限表增加权限 tyzm_diamondvote_menu_manage|tyzm_diamondvote_menu_manage|tyzm_diamondvote_manage|tyzm_diamondvote_rule
permission.mod.php 421增加
if("platform_reply" == $permission_name){
return true;
}
1.2、manage.inc.php 活动列表分用户展示
//MOCK 管理员可见所有活动
if($_W["user"]["uid"] == 1){
$list = pdo_fetchall("SELECT * FROM ".tablename($this->tablereply)." WHERE uniacid = '{$_W['uniacid']} ' $condition ORDER BY status DESC,createtime DESC LIMIT ".($pindex - 1) * $psize.",{$psize}");
}else{
$createUserId = $_W["user"]["uid"];
$list = pdo_fetchall("SELECT * FROM ".tablename($this->tablereply)." WHERE uniacid = '{$_W['uniacid']} ' and createUserId = '{$createUserId}' $condition ORDER BY status DESC,createtime DESC LIMIT ".($pindex - 1) * $psize.",{$psize}");
}
1.3、modile.php 操作员只可以修改自己的活动
//MOCK 只能修改自己有权限的记录
unset($insert['createUserId']);
if($_W["user"]["uid"] == 1)//管理员
{
pdo_update($this->table_reply, $insert, array("id" => $id));
}else{
$createUserId = $_W["user"]["uid"];
pdo_update($this->table_reply, $insert, array("id" => $id, "createUserId" => $createUserId));
}
2 \增加客服二维码
2.1 join.html中增加弹窗层和报名成功后引导关注的js
//165行
关闭
< img src="{MODULE_URL}/QRCode/{php echo $reply['createUserId']}.jpg">
//489行
//MOCK 增加客服二维码联系方式
strid = str.id;
$("#displayServiceQR").show();
//location.href="{php echo $this->createMobileUrl('view', array('rid' => $reply['rid']))}&id="+str.id;
2.2 增加活动页面的用户id展示
new_manage.html
107行
客服二维码:{$row['createUserId']}
3 增加系统颜色
module.php:426
$template = array('default_new' => array('title' => '默认模板', 'icon' => 'icon.jpg', 'style' => array('default' => array('css' => 'index', 'color' => '#ccc'), 'yellow' => array('css' => 'default_yellow', 'color' => '#fff900'), 'blue' => array('css' => 'default_blue', 'color' => '#04b0f5'), 'purple' => array('css' => 'default_purple', 'color' => '#c400d0'),
'pink' => array('css' => 'default_pink', 'color' => '#fe96a7')
4 增加活动备注
4.1 new_manage.html 63 管理页面增加备注展示
{$row['comment']}
4.2 数据库增加字段 comment
4.3 from.html 84 添加活动页面,增加录入入口
4.4 module.php 137 增加数据入库
$insert = array('rid' => $rid, 'uniacid' => $_W['uniacid'], 'createUserId' =>$_W["user"]["uid"] ,'title' => $_GPC['title'], 'thumb' => $_GPC['thumb'], 'description' => $_GPC['description'], 'starttime' => strtotime($_GPC['time']['start']), 'endtime' => strtotime($_GPC['time']['end']), 'apstarttime' => strtotime($_GPC['aptime']['start']), 'apendtime' => strtotime($_GPC['aptime']['end']), 'votestarttime' => strtotime($_GPC['votetime']['start']),
5多用户数据统计功能
5.1 module.php 增加多用户数据查询 +328
//MOCK 分用户进行统计
$item['dailyjointotal'] = pdo_fetchall('SELECT rid,COUNT(id) as dailyjointotal FROM ' . tablename($this->tablevoteuser) . " WHERE uniacid = :uniacid " . $dailytimes . " group by rid" , array(":uniacid" => $_W["uniacid"]), 'rid');
$item['dailyvotetotal'] = pdo_fetchall('SELECT rid,COUNT(id) as dailyvotetotal FROM ' . tablename($this->tablevotedata) . " WHERE uniacid = :uniacid AND votetype=0 " . $dailytimes . " group by rid" , array(":uniacid" => $_W["uniacid"]), 'rid');
$item['dailygiftcount'] = pdo_fetchall('SELECT rid,sum(fee) as dailygiftcount FROM ' . tablename($this->tablegift) . " WHERE uniacid = :uniacid AND ispay=1 AND gifttype=0 " . $dailytimes . " group by rid" , array(":uniacid" => $_W["uniacid"]), 'rid');
$item['dailygiftnum'] = pdo_fetchall('SELECT rid,COUNT(id) as dailygiftnum FROM ' . tablename($this->tablegift) . " WHERE uniacid = :uniacid AND ispay=1 AND gifttype=0 " . $dailytimes . " group by rid", array(":uniacid" => $_W["uniacid"]), 'rid');
$replys = pdo_fetchall('SELECT r.createUserId,r.rid,r.title,u.username FROM ' . tablename($this->table_reply) . " as r, ". tablename('users') . " as u WHERE uniacid = :uniacid and r.createUserId = u.uid " , array(":uniacid" => $_W["uniacid"]), 'rid');
//处理数组username为key汇总的格式
foreach($replys as $k => $v){
$userVodeDatas[$v['username']] = array('dailyjointotal' => 0,'dailyvotetotal' => 0,'dailygiftcount' => 0,'dailygiftnum' => 0,'username' => $v['username']);
}
foreach($item as $k => &$v){
if(!empty($v) && is_array($v)){
foreach($v as $rid => &$vv){
$userVodeDatas[$replys[$rid]['username']][$k] += $vv[$k];
}
}
}
5.2 setting.html 修改前端展示形式为表格形式 +55
用户名 |
参与 |
投票人次 |
送礼人次 |
收入 |
---|
{loop $userVodeDatas $row}
{$row['username']} |
{$row['dailyjointotal']} | {$row['dailyvotetotal']} | {$row['dailygiftnum']} | ¥ {$row['dailygiftcount']}
{/loop} |
6、投票成功后提示礼物弹窗
修改foot.html增加dialog3类型,移除确定按钮
修改vote.php的返回值,加入 return array('status' => '2', 'msg' => "投票成功
");
修改view.html 中的投票成功后逻辑:
else if(str.status == 0){
dialog2(str.msg);
}else if(str.status == 500){
$("#follow").show();
}else if(str.status == 2){
dialog3(str.msg);
}
else{
dialog2(str.msg);
}
7、 霸屏底部输入故障解决、
mock __init.php 在mc_oauth_userinfo函数下面加入虚拟登录代码,使得可以PC调试
//MOCK
$oauth_sys_user = array ( 'subscribe' => 1, 'openid' => 'oyVyS53sYCTn0UNpA8j8pvCjkzFU', 'nickname' => '大豆1', 'sex' => 1, 'language' => 'zh_CN', 'city' => '', 'province' => '', 'country' => '伊拉克', 'headimgurl' => 'http://thirdwx.qlogo.cn/mmopen/sTJptKvBQLKpib1micgYymocLzLF2fxQcFdgFBHJJTDCcOGiaoTVM3CzlURaUUSLQ7ibA1Ry53HlqokDGz1uB2c1RcKoZxGLaekQ/132', 'subscribe_time' => 1553834682, 'groupid' => 0, 'tagid_list' => array ( ), 'avatar' => 'http://thirdwx.qlogo.cn/mmopen/sTJptKvBQLKpib1micgYymocLzLF2fxQcFdgFBHJJTDCcOGiaoTVM3CzlURaUUSLQ7ibA1Ry53HlqokDGz1uB2c1RcKoZxGLaekQ/132', );
$_COOKIE[$meepo_oauth_openid] = 'oyVyS53sYCTn0UNpA8j8pvCjkzFU';$_COOKIE[$meepo_oauth_sex] = 1;$_COOKIE[$meepo_oauth_nickname]='大豆';$_COOKIE[$meepo_oauth_avatar]='http://thirdwx.qlogo.cn/mmopen/sTJptKvBQLKpib1micgYymocLzLF2fxQcFdgFBHJJTDCcOGiaoTVM3CzlURaUUSLQ7ibA1Ry53HlqokDGz1uB2c1RcKoZxGLaekQ/132';
$_W['openid'] = 'oyVyS53sYCTn0UNpA8j8pvCjkzFU';
定位后发现是缺失js和css文件,上传指定位置
缺少的文件下载来源:https://www.swiper.com.cn/cdn/index.html 。放到提示出错的位置,其中js的路径写在css下了,也需要修改一下
9、 增加真实票数统计功能
votelist.php 增加数据库拉取数据
//MOCK
$gift=pdo_fetch("SELECT sum(fee) as fee, sum(giftvote) as giftvote FROM ".tablename($this->tablegift)." WHERE rid = :rid AND tid=:tid and uniontid !='' ", array(':rid' => $item['rid'],':tid' => $item['id']));
//var_export($gift);
$item['fee']=empty($gift['fee'])?0:$gift['fee'];
$item['giftvote']=empty($gift['giftvote'])?0:$gift['giftvote'];
$real_votenum=pdo_fetchcolumn("SELECT count(1) as vote FROM ".tablename($this->tablevotedata)." WHERE rid = :rid AND tid=:tid ", array(':rid' => $item['rid'],':tid' => $item['id']));
$item['real_votenum']=empty($real_votenum)?0:$real_votenum;
votelist.html增加展示部分
8、霸屏移除重金两个字
搜索到的重金都删除就行了。删除消息种类提示:barwall.html,bpMsg 1471行,删除 '+val+''+e.bp_time+'秒
9、移除霸屏右侧时间
barwall.html {{item.createtime | formatDate}} 删除
转载于:https://www.cnblogs.com/ynhi/p/10408407.html