存档

‘张宏良张洪量’ 分类的存档

vpp各个栏目列表的程序读取逻辑

2020年4月15日 没有评论

APP 新闻首页推荐:
第一页读取32条新闻,第一条新闻读取后台设置的app置顶(如果有就显示)
32条新闻读取顺序,先读取24小时内的频道+新闻精华,按照id desc排序,如果不够32条,剩余就读取24H内非频道+新闻精华,按照浏览量viewnum desc排序
下面每一页都读取20条。优先按照上面24h的精华读取,没有就再按照非精华24h浏览量排序
当24H以内的精华和非精华都读取完了,再读取24H以外的按照id desc排序

APP 新闻列表页+频道的列表页:
每页20条,先读取24H以内的精华文章id desc排序,每次显示都随机打乱显示。
如果读完了,就读取去除24H以内的精华文章的其他文章,按照 id desc 顺序显示

APP 频道推荐页:
只读取当前频道分类下所有精华文章,按照id desc排序

APP论坛首页:
新帖版块分为:发布时间顺序,回帖时间顺序,智能排序
发布时间顺序:按照发布时间desc每页40条
回帖时间顺序:按照回帖desc每页40条
智能排序:
第一页 读取40条按照发布时间排序,如果登陆状态下先读取自己发的帖子(10分钟内发布的)40条随机打乱显示
第二页按照发布时间排序一次性读取120条,随机打乱返回客户端,客户端把120条分为3组,每次一页读取一组;
后面依次类推,没次返回120条随机打乱,分3组依次显示
热帖版块: 按照heats热度>=100的发布时间desc 每页40条

每个版块列表:发布时间顺序,回帖时间顺序
发布时间顺序:按照发布时间desc每页40条
回帖时间顺序:按照回帖desc每页40条

APP店铺列表
置顶的店铺每次最多读取2条:
定位成功:读取距离最近的2个置顶的店铺按照wilsonscore 排序
定位失败:随机读取2个置顶店铺

1:智能排序(wilsonscore+距离排序)
定位成功:
A:所有的店铺按照距离近到远排序返回客户端
B:客户端把所有数据分为10组(如果数据小于10条,不分组)
C:每组按照wilsonscore desc 再排序
D:10组按顺序组合在一起,每次取前20条返回显示
定位失败:按照wilsonscore desc 排序每次20条

2:离我最近
只有定位成功才能使用,按照距离排序

3:评价最好(avgsort 排序)
定位成功:只读取5km以内的,优先读取评论>=5的 avgsort desc,再读取<5 的avgsort desc 组合 定位失败:优先读取评论>=5的 avgsort desc,再读取<5 的avgsort desc 组合

4:人气最高
定位成功:只读取5km以内的,按照签到数量 desc
定位失败:按照签到数量 desc

5:浏览人数
定位成功:只读取5km以内的,按照签到浏览量 desc
定位失败:按照签到浏览量 desc

6:人均最高,人均最低
定位成功:只读取5km以内的,按照价格排序
定位失败:按照价格排序

用户协议-privacy policy模板

2020年1月15日 没有评论

Sitename(请修改)(“us”, “we”, or “our”) operates https://www.zhanghongliang.com (请修改) (the “Site”). This page informs you of our policies regarding the collection, use and disclosure of Personal Information we receive from users of the Site.

We use your Personal Information only for providing and improving the Site. By using the Site, you agree to the collection and use of information in accordance with this policy.

Information Collection And Use

While using our Site, we may ask you to provide us with certain personally identifiable information that can be used to contact or identify you. Personally identifiable information may include, but is not limited to your name (“Personal Information”).

Log Data

Like many site operators, we collect information that your browser sends whenever you visit our Site (“Log Data”).

This Log Data may include information such as your computer’s Internet Protocol (“IP”) address, browser type, browser version, the pages of our Site that you visit, the time and date of your visit, the time spent on those pages and other statistics.

In addition, we may use third party services such as Google Analytics that collect, monitor and analyze this …

Communications

We may use your Personal Information to contact you with newsletters, marketing or promotional materials and other information that …

Cookies

Cookies are files with small amount of data, which may include an anonymous unique identifier. Cookies are sent to your browser from a web site and stored on your computer’s hard drive.

Like many sites, we use “cookies” to collect information. You can instruct your browser to refuse all cookies or to indicate when a cookie is being sent. However, if you do not accept cookies, you may not be able to use some portions of our Site.

Security

The security of your Personal Information is important to us, but remember that no method of transmission over the Internet, or method of electronic storage, is 100% secure. While we strive to use commercially acceptable means to protect your Personal Information, we cannot guarantee its absolute security.

Changes To This Privacy Policy

This Privacy Policy is effective as of 2020-01-01 and will remain in effect except with respect to any changes in its provisions in the future, which will be in effect immediately after being posted on this page.

We reserve the right to update or change our Privacy Policy at any time and you should check this Privacy Policy periodically. Your continued use of the Service after we post any modifications to the Privacy Policy on this page will constitute your acknowledgment of the modifications and your consent to abide and be bound by the modified Privacy Policy.

If we make any material changes to this Privacy Policy, we will notify you either through the email address you have provided us, or by placing a prominent notice on our website.

Contact Us

If you have any questions about this Privacy Policy, please contact us.

分类: 张宏良张洪量 标签:

安徽合肥在线领用发票

2020年1月11日 没有评论

1,打开http://anhui.chinatax.gov.cn/

2,点击,我要办税

3,点击登录,选择实名用户,输入纳税号,输入手机号(1515590****),获得验证码,提交登录

4,我要办税->发票使用->发票领用(快递)

5,第4步说明(如果可用领取数量为0,请点击: 我要办税->发票使用->发票验(交)旧)

6,发票收到后,打开金税盘,发票管理->发票领用管理->网上领票管理->领用发票->查询->录入

OK,搞定,就可以开具发票了。

分类: 张宏良张洪量 标签:

yeti-china查询语句sql

2019年12月17日 没有评论

select count(a.id) as nums,b.name,b.lianxiren,b.lianxidianhua,b.address from vip_chaxun as a,vip as b where a.vipid=b.id and a.posttime>=1572537600 GROUP BY a.vipid order by nums desc

分类: 张宏良张洪量 标签:

2019app导航-我的-整理意见

2019年10月31日 没有评论

原则:

1,我的,主页,整理现有的栏目(现有的栏目有点多,分类可能不是很清晰)
2,列表页样式优化调整(部分改为横向tab切换)
3,增加了一些功能
4,其他小布局的改动

=========================

我的页面:

头像+昵称
账号管理:(内页上下3大块布局)
(官方账号、QQ账号、微信账号、手机号)直接展示出来(手机号如果未绑定,提示绑定可获得1金币)
基础资料(下面放一个独立的按钮)
退出登陆(按钮)
消息(N)

我的发布、我的收藏、浏览历史

每日签到:(当天未签到有个小红点提醒即可)
赚更多金币:
每日任务:(直接展示出来)
分享热帖
分享热门新闻
邀请好友:(在邀请页面,输入好友手机号,如果这个手机号再24小时之内,通过app注册成功,视为推广)
绑定手机号:(如果已绑定,则显示灰色,未绑定,提示绑定可获得1金币)

我的资产:金币,金币积分、兑金币按钮(金币积分、金币兑换码)
礼品中心

设置:(上下3大块布局)
(个人页面动态显示范围、论坛新帖默认排序)
(清空足迹、清空缓存)
退出登陆
联系/帮助:(顶部切换4栏目,默认:合作联系)
合作联系【保持现有app,把电话号码加上】、意见反馈、帮助中心、关于我们

分类: 张宏良张洪量 标签: , ,
css.php