多帐号相互助力

This commit is contained in:
chenyingzhou
2021-02-04 11:56:12 +08:00
parent c54d6f4ad2
commit 781eb94cd3
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月9日-2021年2月9日)

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}文件"