!135 多账号相互助力

Merge pull request !135 from chenyingzhou/feature/多帐号相互助力
This commit is contained in:
lxk0301
2021-02-10 13:48:08 +08:00
committed by Gitee
10 changed files with 123 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# 每3天的23:50分清理一次日志
50 23 */3 * * rm -rf /scripts/logs/*.log
# 每3天的23:50分清理一次日志(互助码不清理proc_file.sh对该文件进行了去重)
50 23 */3 * * find /scripts/logs -name '*.log' | grep -v 'sharecode' | xargs rm -rf
##############短期活动##############
# 小鸽有礼(活动时间2021年1月15日至2021年2月19日)

View File

@@ -12,8 +12,6 @@ jdfruit="${logdDir}/jd_fruit.log"
jdpet="${logdDir}/jd_pet.log"
jdcrazyJoy="${logdDir}/jd_crazy_joy.log"
echo -e >$sharecodeFile
sed -n '/京东赚赚好友互助码】.*/'p $jdzzFile | awk '{print $4,$5}' | sort | uniq >>$sharecodeFile
echo "提取京东赚赚助力码完成"
@@ -35,6 +33,12 @@ echo "提取东东萌宠助力码完成"
sed -n '/crazyJoy任务好友互助码】.*/'p $jdcrazyJoy | awk '{print $4,$5}' | sort | uniq >>$sharecodeFile
echo "提取crazyJoy任务助力码完成"
cp $sharecodeFile ${sharecodeFile}.tmp
sed -i 's/ //' ${sharecodeFile}.tmp
cat ${sharecodeFile}.tmp | sort | uniq >$sharecodeFile
rm ${sharecodeFile}.tmp
echo "互助码排序和去重完成"
echo "==========================================================================="
echo "整理完成,具体结果请查看${sharecodeFile}文件"