Refund.sh 362 B

123456789101112131415
  1. =============== 1.0-Version ==============
  2. #!/bin/bash
  3. set -xe
  4. while :
  5. do
  6. refund=`tail -n 300 /root/server.log|grep Refund|awk '{print $6}'|sort|uniq`
  7. for id in $refund
  8. do
  9. curl -i -H "Accept:application/json" -X POST -d "{\"user_id\":855,\"game_id\":177,\"refund_id\":\"${id}\"}" http://onlyellow.cstor.cn:18888/launch_refund
  10. done
  11. sleep 6
  12. done