thinksns4.0添加自定义每日任务 【转】

thinksns4.0添加自定义每日任务 【转】

在 phpmyadmin 的页面中或者 bash 命令敲 mysql -u用户名 -p 后输入密码,选择TS数据库。

执行以下3条语句即可。(如果只想自定义增加一个任务,就只执行一行)

然后前往后台每日任务管理就可以编辑名字和奖励勋章设置了。

想添加多少就执行多少次

INSERT INTO `ts_task` (`task_level`, `task_name`, `task_type`, `step_name`, `step_desc`, `condition`, `action`, `ctime`, `reward`, `is_del`, `headface`, `show`) VALUES(1, ‘每日任务’, 1, ‘发布1条原创分享’, ‘在我的首页中发布原创分享’, ‘{“weibopost”:1}’, ”, NULL, ‘{“exp”:5,”score”:5}}’, 0, NULL, ‘0,1,2’);

INSERT INTO `ts_task` (`task_level`, `task_name`, `task_type`, `step_name`, `step_desc`, `condition`, `action`, `ctime`, `reward`, `is_del`, `headface`, `show`) VALUES(1, ‘每日任务’, 1, ‘评论1条分享’, ‘评论他人的分享’, ‘{“weibocomment”:1}’, ”, NULL, ‘{“exp”:5,”score”:5}’, 0, NULL, ‘0,1,2’);

INSERT INTO `ts_task` (`task_level`, `task_name`, `task_type`, `step_name`, `step_desc`, `condition`, `action`, `ctime`, `reward`, `is_del`, `headface`, `show`) VALUES(1, ‘每日任务’, 1, ‘转发1条分享’, ‘在我的首页中转发1条他人的分享’, ‘{“weiborepost”:1}’, ”, NULL, ‘{“exp”:5,”score”:5}}’, 0, NULL, ‘0,1,2’);

如果想更改条件,在后台任务的页面设置中把 condition 隐藏给关掉即可

condition 对应:

‘weibopost’ => ‘原创分享’

‘weiborepost’ => ‘转发分享’

‘weibocomment’ => ‘分享评论’

‘uploadface’ => ‘上传头像’

‘following’ => ‘粉丝数’

‘checkin’ => ‘签到’

‘userinfo’ => ‘用户信息’

‘followinterest’ => ‘关注感兴趣的人’

‘weibotofriend’ => ‘发表分享通知好友’

‘userlevel’ => ‘用户等级’

‘weibotranspost’ => ‘分享被转发’

‘weiboreceivecomment’ => ‘分享被评论’

‘weiboonetranspost’ => ‘单条分享被转发’

‘weiboonecomment’ => ‘单条分享被评论’

‘weiboappoint’ => ‘转发指定分享’

‘weibafollow’ => ‘关注微吧’

‘weibapost’ => ‘微吧发布帖子’

‘weibamarrow’ => ‘微吧精华’

‘followmutual’ => ‘相互关注’

‘channelcontribute’ => ‘频道投稿’

‘manager’ => ‘管理员’

‘bindtel’ => ‘绑定手机’

‘inviteuser’ => ‘邀请用户’

‘sendgift’ => ‘商城送礼’

‘weibodigg’ => ‘赞他人分享’

‘weibodigged’ => ‘分享被赞100次’

‘giftreceive’ => ‘收到10个礼物’

‘inviteusers’ => ‘邀请10个用户’

#以下为待开发的任务

‘blogpost’ => ‘分享知识’

‘blogrepost’ => ‘转发知识’

‘blogmarrow’ => ‘知识精华’

‘phototrueimg’ => ‘相册上传真实图片’

‘photolove’ => ‘喜欢一张相册图片’

发表评论

电子邮件地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据