Gogs 2 years ago
commit
81d12963bd
20 changed files with 1809 additions and 0 deletions
  1. 14 0
      Dockerfile
  2. 8 0
      agollo.json
  3. BIN
      customer
  4. BIN
      image/att.png
  5. BIN
      image/err.png
  6. BIN
      image/succ.png
  7. 8 0
      push.sh
  8. BIN
      qrcode
  9. BIN
      wapi
  10. 150 0
      wapi.yaml
  11. 96 0
      yamls/agora.yaml
  12. 411 0
      yamls/lottery.yaml
  13. 45 0
      yamls/miWEB.yaml
  14. 108 0
      yamls/money_tree.yaml
  15. 281 0
      yamls/money_tree_new.yaml
  16. 79 0
      yamls/moston.yaml
  17. 238 0
      yamls/race.yaml
  18. 78 0
      yamls/redpacket.yaml
  19. 57 0
      yamls/shareutil.yaml
  20. 236 0
      yamls/taskawards.yaml

+ 14 - 0
Dockerfile

@@ -0,0 +1,14 @@
+FROM golang:1.9.2
+RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
+RUN echo 'Asia/Shanghai' > /etc/timezone
+
+COPY wapi /go/bin/
+RUN chmod +x /go/bin/wapi
+COPY agollo.json /go/bin/
+COPY wapi.yaml /go/bin/
+COPY yamls /go/bin/yamls
+COPY image /go/bin/image
+WORKDIR /go/bin
+
+CMD ["/go/bin/wapi"]
+EXPOSE 8094

+ 8 - 0
agollo.json

@@ -0,0 +1,8 @@
+{
+  "appId": "2",
+  "cluster" : "default",
+  "namespaceNames" : ["wapi.yaml"],
+  "ip" : "10.144.8.137:8080",
+  "oneNamespaceMode" : true,
+  "tagname" : "yaml"
+}

BIN
customer


BIN
image/att.png


BIN
image/err.png


BIN
image/succ.png


+ 8 - 0
push.sh

@@ -0,0 +1,8 @@
+#!/bin/bash
+
+release=$1
+
+[ ! -n "$release" ] && exit 1
+
+docker build -t registry-vpc.cn-beijing.aliyuncs.com/xinyue/wapi-test:${release} .
+docker push registry-vpc.cn-beijing.aliyuncs.com/xinyue/wapi-test:${release}

BIN
qrcode


BIN
wapi


+ 150 - 0
wapi.yaml

@@ -0,0 +1,150 @@
+listen: 8094
+runmode: debug        # 服务运行模式 debug/release
+alilog:
+  endpoint: cn-beijing-intranet.log.aliyuncs.com
+  accessKeyId: LTAI4FpV3iJgr8P3k4La8Hy3
+  accessKeySecret: sZl51xZlMTzanMGQmky9K06QrksrRK
+  project: xylogs
+  projectOld: xylogs2018
+gsdk:
+  app_id: userapi
+  auth_key: ce991fe2e92d1d6d73fc62c6ba420e79
+  ip: 172.17.18.107
+  port: 6033
+logs:
+  dir: ../log            # 文件保存路径
+  file: wapi            # 文件名称,实际会保存为{filename}+{datetime}
+  level: 3            # 日志等级:0-error,1-warning,2-info,3-debug
+  savefile: false        # 是否保存为文件,置为false会输出到标准输出
+mysql_main:                          # 数据库信息
+  addr: rm-2zefd772420bxy12d.mysql.rds.aliyuncs.com:3306
+  user: userapi
+  password: userapi@xinyue0923
+  db: main
+  charset: utf8mb4
+  max_open: 10
+  max_idle: 5
+mysql_log:
+  addr: rm-2zefd772420bxy12d.mysql.rds.aliyuncs.com:3306  # 数据库信息
+  user: userapi     # 用户
+  password: userapi@xinyue0923 # 密码
+  db: log        # 数据库
+  charset: utf8mb4
+  max_open: 10          # 最大连接数
+  max_idle: 5           # 最大空闲数
+mysql_ext:
+  addr: rm-2zefd772420bxy12d.mysql.rds.aliyuncs.com:3306  # 数据库信息
+  user: userapi     # 用户
+  password: userapi@xinyue0923 # 密码
+  db: ext        # 数据库
+  charset: utf8mb4
+  max_open: 10          # 最大连接数
+  max_idle: 5           # 最大空闲数
+mysql_agent:
+  addr: rm-2ze9y3724e7f4642q.mysql.rds.aliyuncs.com:3306  # 数据库信息
+  user: jixiang     # 用户
+  password: jixiang@2112 # 密码
+  db: agent        # 数据库
+  charset: utf8mb4
+  max_open: 10          # 最大连接数
+  max_idle: 5           # 最大空闲数
+redis_fifteen:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 15
+  poolsize: 5
+redis_eight:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 8
+  poolsize: 5
+redis15:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 15
+  poolsize: 5
+redis0:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 0
+  poolsize: 5
+redis4:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 4
+  poolsize: 5
+redis5:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 5
+  poolsize: 5
+redis7:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 7
+  poolsize: 5
+redis8:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 8
+  poolsize: 5
+redis16:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 16
+  poolsize: 5
+redis17:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 17
+  poolsize: 5
+redis19:
+  addr: r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379
+  password: weiLeJXreDis2017
+  db: 19
+  poolsize: 5
+alioss:
+  endpoint: oss-cn-beijing.aliyuncs.com #http://cloudimg2.oss-cn-beijing.aliyuncs.com/images/f8db82f445f3766e7f33e720a7c92dec.jpg
+  access_key_id: LTAI4Fkkdg43AbEEhjaESiBy
+  access_key_secret: GK8AtezIg0dDzDfzp3lWO0Iu5NmFhw
+  bucket: cloudimg-xy
+  bucket2: cloudimg-xy
+  bucket_url: cloudimg-xy.xinyueyouxi.com
+  domain: xinyueyouxi.com
+  domain_url: cloudimg-xy.xinyueyouxi.com
+  http_head: https
+brand:
+  id: 3
+  tag: xinyue
+  domain: xinyueyouxi.com
+  name: 心悦
+  userfrom: 7
+  client: 16384
+  tel:
+ymrt:
+  cdkey: 8SDK-EMY-6699-SERUN
+  pwd: 217650
+  data:
+    ename: 吉林省心悦网络科技有限公司
+    linkman: 邢东海
+    phonenum: 0432-81156088
+    mobile: 17790074587
+    email: xingdonghai@gmail.com
+    fax: 0432-81156088
+    address: 吉林省 长春市 南关区 伟峰国际商务中心 1701室
+    postcode: 130000
+amap:
+  key: 9d6db246011c5fbc220d1d33be606f1a #高德key
+moston:
+  appkey: "Y0fPsd3cJL"
+  appsecret: "73ef5e05d6563434ab5d47eb39acbba3"
+  urlaccesstoken: "https://api.open.mostonetech.com/oauth2/access_token?appKey=%s&appSecret=%s&code=%s"
+  urlrefreshtoken: "https://api.open.mostonetech.com/oauth2/refresh_token?appKey=%s&refreshToken=%s"
+  urluserinfo: "https://api.open.mostonetech.com/mw/userinfo?accessToken=%s&openId=%s"
+  urlcode: "https://api.open.mostonetech.com/mw/connect?appKey=%s&redirectUri=%s&state=%s"
+mongodb_user:
+  addrs: ["dds-2ze3917a32d44b441.mongodb.rds.aliyuncs.com:3717","dds-2ze3917a32d44b442.mongodb.rds.aliyuncs.com:3717"]
+  user: "userapi"
+  password: "gQ$VDWU_nE#s"
+  database: "userext"
+  poollimit: 10

+ 96 - 0
yamls/agora.yaml

@@ -0,0 +1,96 @@
+agoraconf: #channelkey ctrl
+  fish:
+    appCertificate: 5ba9a4172f4b4df893012c288fd1e4e8
+    appID: 87747b37abcc41bb91e9df995947770a
+    time: "60"
+  weile:
+    appCertificate: 5ba9a4172f4b4df893012c288fd1e4e8
+    appID: 87747b37abcc41bb91e9df995947770a
+    time: "600"
+  xxl:
+    appCertificate: 5ba9a4172f4b4df893012c288fd1e4e8
+    appID: 87747b37abcc41bb91e9df995947770a
+    time: "60"
+exckey: c86b1ae0789f5a45e4cef10581a8590b #exchange ctrl
+extfrom: userapi
+dataidmap: #newlottery ctrl
+  "15": 个豆豆
+  "16": 个元宝
+  "251": 元话费
+  "258": 张开房卡
+  "261": 元微信红包
+  "263": 话费卡
+  "271": 个赞
+  "272": 个脸盆
+  "273": 个锤子
+  "274": 个番茄
+  "275": 个喷漆
+  "276": 个枪
+  "277": 个毛笔
+  "278": 个恭喜发财
+  "279": 个嘴唇
+  "280": 个人头马
+  "281": 个口香糖
+hlvmap: #荣耀等级配置
+  "1": 0
+  "2": 300
+  "3": 1500
+  "4": 7500
+  "5": 30000
+  "6": 120000
+  "7": 480000
+  "8": 2000000
+  "9": 4000000
+  "10": 6000000
+  "11": 8000000
+  "12": 10000000
+levelmap1803: #棋牌vip计算方法
+  - 0
+  - 1
+  - 99
+  - 397
+  - 845
+  - 1843
+  - 3523
+  - 6503
+  - 12183
+  - 21063
+  - 33863
+  - 49663
+  - 69463
+  - 89263
+  - 119063
+  - 148863
+  - 178663
+closeGameIDMap: #暂时关闭回放的游戏
+  "1":
+    - 1
+    - 29
+    - 30
+  "2":
+    - 1
+    - 29
+    - 30
+  "3":
+    - 1
+    - 29
+    - 30
+miniTask: #小程序分享领奖,有30%失败概率
+  - 86
+  - 88
+  - 89
+  - 90
+  - 91
+  - 92
+  - 95
+  - 97
+  - 101
+  - 105
+  - 110
+specialTask: #特殊任务
+  - 98
+  - 99
+  - 100
+  - 101
+  - 109
+  - 110

+ 411 - 0
yamls/lottery.yaml

@@ -0,0 +1,411 @@
+data:
+  1:
+    -
+      id: 100
+      data_id: 15
+      count: 180000
+      weight: 100
+      type: 16
+      consume_value: 0
+      frozen: 5
+      probability: 10
+    -
+      id: 101
+      data_id: 15
+      count: 10000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 102
+      data_id: 9999
+      count: 1
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 5
+    -
+      id: 103
+      data_id: 15
+      count: 100000
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 15
+    -
+      id: 104
+      data_id: 15
+      count: 20000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 105
+      data_id: 15
+      count: 50000
+      weight: 1000
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 106
+      data_id: 15
+      count: 40000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 107
+      data_id: 15
+      count: 30000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 108
+      data_id: 15
+      count: 80000
+      weight: 500
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 10
+  2:
+    -
+      id: 100
+      data_id: 15
+      count: 180000
+      weight: 100
+      type: 16
+      consume_value: 0
+      frozen: 5
+      probability: 10
+    -
+      id: 101
+      data_id: 15
+      count: 10000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 102
+      data_id: 9999
+      count: 1
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 5
+    -
+      id: 103
+      data_id: 15
+      count: 100000
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 15
+    -
+      id: 104
+      data_id: 15
+      count: 20000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 105
+      data_id: 15
+      count: 50000
+      weight: 1000
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 106
+      data_id: 15
+      count: 40000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 107
+      data_id: 15
+      count: 30000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 108
+      data_id: 15
+      count: 80000
+      weight: 500
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 10
+  3:
+    -
+      id: 100
+      data_id: 15
+      count: 180000
+      weight: 100
+      type: 16
+      consume_value: 0
+      frozen: 5
+      probability: 10
+    -
+      id: 101
+      data_id: 15
+      count: 10000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 102
+      data_id: 9999
+      count: 1
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 5
+    -
+      id: 103
+      data_id: 15
+      count: 100000
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 15
+    -
+      id: 104
+      data_id: 15
+      count: 20000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 105
+      data_id: 15
+      count: 50000
+      weight: 1000
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 106
+      data_id: 15
+      count: 40000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 107
+      data_id: 15
+      count: 30000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 108
+      data_id: 15
+      count: 80000
+      weight: 500
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 10
+  4:
+    -
+      id: 400
+      data_id: 15
+      count: 180000
+      weight: 100
+      type: 16
+      consume_value: 0
+      frozen: 5
+      probability: 10
+    -
+      id: 101
+      data_id: 15
+      count: 10000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 102
+      data_id: 9999
+      count: 1
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 5
+    -
+      id: 103
+      data_id: 15
+      count: 100000
+      weight: 200
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 15
+    -
+      id: 104
+      data_id: 15
+      count: 20000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 105
+      data_id: 15
+      count: 50000
+      weight: 1000
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 106
+      data_id: 15
+      count: 40000
+      weight: 1500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 107
+      data_id: 15
+      count: 30000
+      weight: 2500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 108
+      data_id: 15
+      count: 80000
+      weight: 500
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 10
+  40:
+    -
+      id: 4000
+      data_id: 216
+      count: 180
+      weight: 125
+      type: 16
+      consume_value: 0
+      frozen: 5
+      probability: 10
+    -
+      id: 4001
+      data_id: 263
+      count: 10
+      weight: 1100
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 4002
+      data_id: 9999
+      count: 1
+      weight: 2000
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 5
+    -
+      id: 4003
+      data_id: 216
+      count: 10
+      weight: 250
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 15
+    -
+      id: 4004
+      data_id: 263
+      count: 10
+      weight: 2200
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 4005
+      data_id: 261
+      count: 10
+      weight: 500
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 4006
+      data_id: 15
+      count: 1000
+      weight: 1400
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 15
+    -
+      id: 4007
+      data_id: 16
+      count: 100
+      weight: 2025
+      type: 16
+      consume_value: 0
+      frozen: 0
+      probability: 10
+    -
+      id: 4008
+      data_id: 15
+      count: 500
+      weight: 400
+      type: 16
+      consume_value: 0
+      frozen: 3
+      probability: 10

+ 45 - 0
yamls/miWEB.yaml

@@ -0,0 +1,45 @@
+data:
+  10002-833:
+    "appId": 10041
+    "gameId": 1004101
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  34-833:
+    "appId": 10041
+    "gameId": 1004101
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  1002-200: #测试
+    "appId": 10041
+    "gameId": 1004101
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  42-833:
+    "appId": 10041
+    "gameId": 1004102
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  44-833:
+    "appId": 10041
+    "gameId": 1004103
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  380-833:
+    "appId": 10041
+    "gameId": 1004104
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  38-833:
+    "appId": 10041
+    "gameId": 1004105
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  372-833:
+    "appId": 10041
+    "gameId": 1004106
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  140-833:
+    "appId": 10041
+    "gameId": 1004107
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  110-833:
+    "appId": 10041
+    "gameId": 1004108
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3
+  388-833:
+    "appId": 10041
+    "gameId": 1004109
+    "secretkey": f8e55880f82140c6a5c7b5a48fd1b3d3

+ 108 - 0
yamls/money_tree.yaml

@@ -0,0 +1,108 @@
+draw_day_limit: 3
+tree_level:
+  - level: 1
+    minus: 0
+    fertilizer: 100
+  - level: 2
+    minus: 20
+    fertilizer: 120
+  - level: 3
+    minus: 30
+    fertilizer: 140
+  - level: 4
+    minus: 40
+    fertilizer: 160
+  - level: 5
+    minus: 50
+    fertilizer: 180
+  - level: 6
+    minus: 60
+    fertilizer: 200
+  - level: 7
+    minus: 70
+    fertilizer: 300
+  - level: 8
+    minus: 80
+    fertilizer: 400
+  - level: 9
+    minus: 90
+    fertilizer: 500
+  - level: 10
+    minus: 100
+    fertilizer: 600
+money_level:
+  1:
+    h: 5000
+    m: 1500
+    l: 888
+    ratio: 95
+    show: 6
+    first: 2
+  2:
+    h: 8000
+    m: 2000
+    l: 1666
+    ratio: 95
+    show: 6
+    first: 2
+  3:
+    h: 10000
+    m: 2500
+    l: 1888
+    ratio: 95
+    show: 6
+    first: 2
+  4:
+    h: 15000
+    m: 3000
+    l: 2666
+    ratio: 97
+    show: 9
+    first: 3
+  5:
+    h: 20000
+    m: 3500
+    l: 2888
+    ratio: 97
+    show: 9
+    first: 3
+  6:
+    h: 25000
+    m: 4000
+    l: 3666
+    ratio: 97
+    show: 9
+    first: 3
+  7:
+    h: 30000
+    m: 4500
+    l: 3888
+    ratio: 99
+    show: 12
+    first: 4
+  8:
+    h: 35000
+    m: 5000
+    l: 4666
+    ratio: 99
+    show: 12
+    first: 4
+  9:
+    h: 40000
+    m: 5500
+    l: 4888
+    ratio: 99
+    show: 12
+    first: 4
+  10:
+    h: 50000
+    m: 6000
+    l: 5666
+    ratio: 99
+    show: 12
+    first: 4
+fer_config:
+    first: 100
+    later: 10
+    first_money: 5000
+    later_money: 1000

+ 281 - 0
yamls/money_tree_new.yaml

@@ -0,0 +1,281 @@
+draw_day_limit: 3
+share_ad_times:
+  - 2
+  - 3
+tree_level:
+  - level: 1
+    minus: 0
+    fertilizer: 100
+  - level: 2
+    minus: 20
+    fertilizer: 120
+  - level: 3
+    minus: 30
+    fertilizer: 140
+  - level: 4
+    minus: 40
+    fertilizer: 160
+  - level: 5
+    minus: 50
+    fertilizer: 180
+  - level: 6
+    minus: 60
+    fertilizer: 200
+  - level: 7
+    minus: 70
+    fertilizer: 300
+  - level: 8
+    minus: 80
+    fertilizer: 400
+  - level: 9
+    minus: 90
+    fertilizer: 500
+  - level: 10
+    minus: 100
+    fertilizer: 600
+money_level:
+  1:
+    adward:  ###count的配置绝对要从小到大###
+      - count: 0
+        l: 0
+        h: 0
+      - count: 1
+        l: 30
+        h: 50
+      - count: 30
+        l: 15
+        h: 25
+      - count: 41
+        l: 7
+        h: 12
+      - count: 51
+        l: 0
+        h: 0
+    show: 5000
+    limit: 5000
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  2:
+    adward:
+      - count: 0  ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 45
+        h: 75
+      - count: 30
+        l: 22
+        h: 38
+      - count: 41
+        l: 11
+        h: 19
+      - count: 51
+        l: 0
+        h: 0
+    show: 8000
+    limit: 7500
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  3:
+    adward:
+      - count: 0   ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 60
+        h: 100
+      - count: 30
+        l: 30
+        h: 50
+      - count: 41
+        l: 15
+        h: 25
+      - count: 51
+        l: 0
+        h: 0
+    show: 10000
+    limit: 10000
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  4:
+    adward:
+      - count: 0   ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 80
+        h: 120
+      - count: 30
+        l: 40
+        h: 60
+      - count: 41
+        l: 20
+        h: 30
+      - count: 51
+        l: 0
+        h: 0
+    show: 15000
+    limit: 12500
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  5:
+    adward:
+      - count: 0   ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 90
+        h: 150
+      - count: 30
+        l: 45
+        h: 75
+      - count: 41
+        l: 22
+        h: 37
+      - count: 51
+        l: 0
+        h: 0
+    show: 20000
+    limit: 15000
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  6:
+    adward:
+      - count: 0  ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 100
+        h: 180
+      - count: 30
+        l: 50
+        h: 90
+      - count: 41
+        l: 25
+        h: 45
+      - count: 51
+        l: 0
+        h: 0
+    show: 25000
+    limit: 17500
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  7:
+    adward:
+      - count: 0   ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 120
+        h: 200
+      - count: 30
+        l: 60
+        h: 100
+      - count: 41
+        l: 30
+        h: 50
+      - count: 51
+        l: 0
+        h: 0
+    show: 30000
+    limit: 20000
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  8:
+    adward:
+      - count: 0   ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 140
+        h: 220
+      - count: 30
+        l: 70
+        h: 110
+      - count: 41
+        l: 35
+        h: 55
+      - count: 51
+        l: 0
+        h: 0
+    show: 35000
+    limit: 22500
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  9:
+    adward:
+      - count: 0  ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 160
+        h: 240
+      - count: 30
+        l: 80
+        h: 120
+      - count: 41
+        l: 40
+        h: 60
+      - count: 51
+        l: 0
+        h: 0
+    show: 40000
+    limit: 25000
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+  10:
+    adward:
+      - count: 0  ###count的配置绝对要从小到大###
+        l: 0
+        h: 0
+      - count: 1
+        l: 180
+        h: 260
+      - count: 30
+        l: 90
+        h: 130
+      - count: 41
+        l: 45
+        h: 65
+      - count: 51
+        l: 0
+        h: 0
+    show: 50000
+    limit: 27500
+    triple: 10
+    twenty_onece: 10
+    twenty_twice: 5
+    twenty_triple: 2
+    twenty_quintic: 1
+fer_config:
+    first: 100
+    later: 10
+    first_money: 5000
+    later_money: 1000

+ 79 - 0
yamls/moston.yaml

@@ -0,0 +1,79 @@
+moston_infos: 
+  - app_id: 1001
+    app_name: 心悦麻将
+    app_key: Y0fPsd3cJL
+    app_secret: 73ef5e05d6563434ab5d47eb39acbba3
+  - app_id: 1001
+    channel_id: 12
+    app_name: 心悦麻将
+    app_key: EymqymjHAL
+    app_secret: ddff40b15aa7b259ef1b7a37002dab43
+  - app_id: 1002
+    app_name: 心悦麻将
+    app_key: Y0fPsd3cJL
+    app_secret: 73ef5e05d6563434ab5d47eb39acbba3
+  - app_id: 1002
+    channel_id: 217
+    app_name: 心悦麻将
+    app_key: EymqymjHAL
+    app_secret: ddff40b15aa7b259ef1b7a37002dab43
+  - app_id: 2
+    app_name: 心悦吉林麻将
+    app_key: oZprEEcGHp
+    app_secret: b99862545f785b3a64ac53b16be77d6f
+  - app_id: 4
+    app_name: 心悦辽宁麻将
+    app_key: pGKUiH2Sro
+    app_secret: 078b73e7355f291a896e02861fca298b
+  - app_id: 6
+    app_name: 心悦龙江麻将
+    app_key: PPsG2PuDpB
+    app_secret: 03f0dcc030ffb573cf27a22315f422cd
+  - app_id: 46
+    app_name: 心悦宁夏麻将
+    app_key: EY8tughcMK
+    app_secret: dfaec65b4000b93e4bb63d02debe69b4
+  - app_id: 14
+    app_name: 心悦山东麻将
+    app_key: mA224xXMy1
+    app_secret: 97196f721209ea233ba68f2795f36ab7
+  - app_id: 28
+    app_name: 心悦陕西麻将
+    app_key: l75QwSlQNb
+    app_secret: 1bd0999778119073de095b90f33ecb15
+  - app_id: 10
+    app_name: 心悦天津麻将
+    app_key: Koll8FKCMC
+    app_secret: c48fb315b985bd2aa1537f4d018ff4fb
+  - app_id: 30
+    app_name: 心悦安徽麻将
+    app_key: s7W5BqikTD
+    app_secret: f0f5544e0da84823dcc7bdfdb1af96dd
+  - app_id: 34
+    app_name: 心悦福建麻将
+    app_key: x8WlrxlcYk
+    app_secret: 3f9502691f0d98299fe99330d246ead7
+  - app_id: 26
+    app_name: 心悦贵州麻将
+    app_key: cxMztc1tNe
+    app_secret: 0b23e8d3bcfd3e610633b22eb0111ba9
+  - app_id: 18
+    app_name: 心悦海南麻将
+    app_key: sk2vJ75bVD
+    app_secret: c72084bfb18212b3eef1519a43f6fcea
+  - app_id: 8
+    app_name: 心悦河北麻将
+    app_key: Hq9GVS5Buz
+    app_secret: 4776d3cd3ce857c8a1b1871dc1a75bb3
+  - app_id: 22
+    app_name: 心悦河南麻将
+    app_key: lTeNkQNfNI
+    app_secret: 9aba5c070cc4d0f517a2c6039886105b
+  - app_id: 42
+    app_name: 心悦江苏麻将
+    app_key: dV77O3DXFd
+    app_secret: 2e6ce1c3377e41efb6119a5aa2e14b5f
+  - app_id: 20
+    app_name: 心悦江西麻将
+    app_key: bUStiSQPtr
+    app_secret: 06258880785a2e048c50540aa709e762

+ 238 - 0
yamls/race.yaml

@@ -0,0 +1,238 @@
+## 通用配置
+rank_games: [0]
+rank_test_ips: ["124.235.118.56","124.235.118.55","124.235.104.147","110.86.16.26","117.136.59.30","124.235.107.96","124.235.106.201"]
+rank_infos:
+  - game_id: 0
+    race_info:
+    - rank_type: 1
+      rank_name: "100元话费赛"
+      rank_time: "每日08:00-19:00共7场"
+      rank_prizes:
+      - ranking_start: 1
+        ranking_end: 1
+        icon: "huafei_jl_djs"
+        name: "50元话费"
+        exchange: true
+        prop_id: 16
+        num: 5000
+      - ranking_start: 2
+        ranking_end: 2
+        icon: "huafei_jl_djs"
+        name: "30元话费"
+        exchange: true
+        prop_id: 16
+        num: 3000
+      - ranking_start: 3
+        ranking_end: 3
+        icon: "huafei_jl_djs"
+        name: "20元话费"
+        exchange: true
+        prop_id: 16
+        num: 2000
+      - ranking_start: 4
+        ranking_end: 10
+        icon:
+        name: "x200"
+        exchange: false
+        prop_id: 16
+        num: 200
+      - ranking_start: 11
+        ranking_end: 50
+        icon:
+        name: "x100"
+        exchange: false
+        prop_id: 16
+        num: 100
+      - ranking_start: 51
+        ranking_end: 100
+        icon:
+        name: "x50"
+        exchange: false
+        prop_id: 16
+        num: 50
+      rank_activities:
+      - id: 1
+        name: "08:00-09:00"
+        begin: 28800
+        end: 32400
+      - id: 2
+        name: "09:15-10:15"
+        begin: 33300
+        end: 36900
+      - id: 3
+        name: "10:30-11:30"
+        begin: 37800
+        end: 41400
+      - id: 4
+        name: "14:15-15:15"
+        begin: 51300
+        end: 54900
+      - id: 5
+        name: "15:30-16:30"
+        begin: 55800
+        end: 59400
+      - id: 6
+        name: "16:45-17:45"
+        begin: 60300
+        end: 63900
+      - id: 7
+        name: "18:00-19:00"
+        begin: 64800
+        end: 68400
+      rank_scores:
+      - room_type: 1
+        play: 3
+        win: 4
+      - room_type: 2
+        play: 5
+        win: 6
+      - room_type: 3
+        play: 7
+        win: 11
+      - room_type: 4
+        play: 9
+        win: 23
+      - room_type: 5
+        play: 12
+        win: 38
+      max_num: 100
+      duration: 300
+    - rank_type: 2
+      rank_name: "200元话费赛"
+      rank_time: "每日12:00-14:00共1场"
+      rank_prizes:
+      - ranking_start: 1
+        ranking_end: 1
+        icon: "huafei_jl_djs"
+        name: "100元话费"
+        exchange: true
+        prop_id: 16
+        num: 10000
+      - ranking_start: 2
+        ranking_end: 2
+        icon: "huafei_jl_djs"
+        name: "50元话费"
+        exchange: true
+        prop_id: 16
+        num: 5000
+      - ranking_start: 3
+        ranking_end: 3
+        icon: "huafei_jl_djs"
+        name: "30元话费"
+        exchange: true
+        prop_id: 16
+        num: 3000
+      - ranking_start: 4
+        ranking_end: 10
+        icon: "huafei_jl_djs"
+        name: "3元话费"
+        exchange: true
+        prop_id: 16
+        num: 300
+      - ranking_start: 11
+        ranking_end: 100
+        icon: 
+        name: "x100"
+        exchange: false
+        prop_id: 16
+        num: 100
+      - ranking_start: 101
+        ranking_end: 200
+        icon: 
+        name: "x50"
+        exchange: false
+        prop_id: 16
+        num: 50
+      rank_activities: 
+      - id: 8
+        name: "12:00-14:00"
+        begin: 43200
+        end: 50400
+      rank_scores: 
+      - room_type: 1
+        play: 3
+        win: 4
+      - room_type: 2
+        play: 5
+        win: 6
+      - room_type: 3
+        play: 7
+        win: 11
+      - room_type: 4
+        play: 9
+        win: 23
+      - room_type: 5
+        play: 12
+        win: 38
+      max_num: 200
+      duration: 300
+    - rank_type: 3
+      rank_name: "300元京东卡赛"
+      rank_time: "每日19:30-23:30共1场"
+      rank_prizes:
+      - ranking_start: 1
+        ranking_end: 1
+        icon: "jdecard_jl_djs"
+        name: "150元京东卡"
+        exchange: true
+        prop_id: 16
+        num: 15000
+      - ranking_start: 2
+        ranking_end: 2
+        icon: "jdecard_jl_djs"
+        name: "100元京东卡"
+        exchange: true
+        prop_id: 16
+        num: 10000
+      - ranking_start: 3
+        ranking_end: 3
+        icon: "jdecard_jl_djs"
+        name: "50元京东卡"
+        exchange: true
+        prop_id: 16
+        num: 5000
+      - ranking_start: 4
+        ranking_end: 10
+        icon: 
+        name: "x300"
+        exchange: false
+        prop_id: 16
+        num: 300
+      - ranking_start: 11
+        ranking_end: 100
+        icon: 
+        name: "x200"
+        exchange: false
+        prop_id: 16
+        num: 200
+      - ranking_start: 101
+        ranking_end: 200
+        icon: 
+        name: "x100"
+        exchange: false
+        prop_id: 16
+        num: 100
+      rank_activities: 
+      - id: 9
+        name: "20:00-22:30"
+        begin: 72000
+        end: 81000
+      rank_scores: 
+      - room_type: 1
+        play: 3
+        win: 4
+      - room_type: 2
+        play: 5
+        win: 6
+      - room_type: 3
+        play: 7
+        win: 11
+      - room_type: 4
+        play: 9
+        win: 23
+      - room_type: 5
+        play: 12
+        win: 38
+      max_num: 200
+      duration: 300
+  ## 针对游戏的配置

+ 78 - 0
yamls/redpacket.yaml

@@ -0,0 +1,78 @@
+config:
+  "1": 333
+  "2": 210
+  "3": 88
+  "4-0": 90
+  "4-1": 104
+  "5-0": 105
+  "5-1": 115
+chance:
+  "0": 0
+  "25-0": 1
+  "25-1": 4
+  "50-0": 1
+  "50-1": 2
+  "75-0": 3
+  "75-1": 4
+startdate: 2019-01-14 00:00
+enddate: 2019-01-25 15:49
+sendurl: http://oss.console.jixiang.cn/test/SendDingDing #拆红包活动叮叮通知
+conditions: 1000 #提现条件:满10元
+minMax: 
+  - 88
+  - 888
+goodsconfig: #兑换商品
+  "1":
+    goodsid: 1
+    price: 300
+    ori_price: 400
+    prop:
+      15: 40000
+  2:
+    goodsid: 2
+    price: 500
+    ori_price: 700
+    prop:
+      15: 70000
+  3:
+    goodsid: 3
+    price: 1000
+    ori_price: 1200
+    prop:
+      272: 10
+      273: 10
+      274: 10
+      281: 10
+      278: 10
+goodsname:
+  "1": 40000豆
+  "2": 70000豆
+  "3": 魔法礼包
+
+sendgoodsconfig: #兑换商品
+  "1":
+    goodsid: 1
+    price: 200
+    ori_price: 400
+    prop:
+      15: 40000
+  2:
+    goodsid: 2
+    price: 500
+    ori_price: 1000
+    prop:
+      15: 100000
+  3:
+    goodsid: 3
+    price: 600
+    ori_price: 1200
+    prop:
+      276: 10
+      277: 10
+      279: 10
+      275: 10
+      280: 10
+totalpayurl: https://wechat.xinyueyouxi.com/api/totalpayment #检查微信金额是否达到预警
+payurl: https://wechat.xinyueyouxi.com/api/wechatpayment #支付接口
+wxconf: id_48 #小程序配置key 对吉祥兼融
+appconf: id_50 #app配置key 对吉祥兼融

+ 57 - 0
yamls/shareutil.yaml

@@ -0,0 +1,57 @@
+# barndchannel: #jixiang项目
+#   channelids:
+#     - "13"
+#     - "12"
+#   highchannel:
+#     default: "13"
+
+# barndchannel: #weile项目
+#   change:
+#     "263":
+#       "15": "11"
+#       "200": "225"
+#   channelids:
+#     - "200"
+#     - "225"
+#     - "717"
+#     - "501"
+#     - "15"
+#     - "11"
+#     - "505"
+#   highchannel:
+#     "263": "225"
+#     default: "200"
+
+# barndchannel: #xinyue项目
+#   channelids:
+#     - "210"
+#     - "11"
+#   highchannel:
+#     default: "210"
+
+#barndchannel  各自平台按照上面配置 比如微乐
+brand:
+  barndchannel:
+    change:
+      "263":
+        "15": "11"
+        "200": "225"
+    channelids:
+      - "210"
+      - "11"
+    highchannel:
+      default: "210"
+domain: "xinyueyouxi.com"
+id: "3"
+tag: "xinyue"
+redis_addr: "r-2zed56d6b1cddcb4.redis.rds.aliyuncs.com:6379"
+redis_pass: "weiLeJXreDis2017"
+redis_dbindex: 8
+subtop: "share_cache"
+share_db_addr: rm-2zefd772420bxy12d.mysql.rds.aliyuncs.com:3306
+share_db_user: userapi
+share_db_password: userapi@xinyue0923
+share_db_db: share
+share_db_charset: utf8
+share_db_max_open: 2
+share_db_max_idle: 1

+ 236 - 0
yamls/taskawards.yaml

@@ -0,0 +1,236 @@
+awards96and97: #96,97任务奖励
+  1:
+  - - 15
+    - 1000
+  2:
+  - - 15
+    - 1000
+  3:
+  - - 16
+    - 2000
+  4:
+  - - 16
+    - 10
+  5:
+  - - 401
+    - 1
+  6:
+  - - 17
+    - 6
+  7:
+  - - 15
+    - 2000
+  8:
+  - - 404
+    - 3
+  9:
+  - - 16
+    - 10
+  10:
+  - - 17
+    - 10
+  11:
+  - - 15
+    - 2000
+  12:
+  - - 401
+    - 1
+  13:
+  - - 15
+    - 2000
+  14:
+  - - 16
+    - 15
+  15:
+  - - 15
+    - 3000
+awards96and97_2: #每日签到天数小于8,显示每日礼包
+  1:
+  - - 16
+    - 50
+  2:
+  - - 15
+    - 2000
+  3:
+  - - 401
+    - 1
+  4:
+  - - 15
+    - 2000
+  5:
+  - - 15
+    - 2000
+  6:
+  - - 15
+    - 3000
+  7:
+  - - 15
+    - 5000
+  - - 276
+    - 10
+  - - 277
+    - 10
+  - - 280
+    - 10
+  - - 279
+    - 10
+  - - 275
+    - 10
+awards101_1: #心悦101任务奖励
+  1:
+  - - 276
+    - 10
+  - - 276
+    - 20
+awards101_2: #吉祥微乐101任务奖励
+  1:
+  - - 15
+    - 3000
+  - - 16
+    - 15
+awards106_1: #吉祥苹果领取10次,观看广告奖励
+  1:
+  - - 15
+    - 2000
+  2:
+  - - 15
+    - 2000
+  3:
+  - - 15
+    - 4000
+  4:
+  - - 15
+    - 2000
+  5:
+  - - 15
+    - 6000
+  6:
+  - - 15
+    - 2000
+  7:
+  - - 15
+    - 8000
+  8:
+  - - 15
+    - 2000
+  9:
+  - - 15
+    - 2000
+  10:
+  - - 15
+    - 10000
+awards106_2: #吉祥安卓平台可以领取5次,观看广告奖励
+  1:
+  - - 15
+    - 2000
+  2:
+  - - 15
+    - 2000
+  3:
+  - - 15
+    - 4000
+  4:
+  - - 15
+    - 2000
+  5:
+  - - 15
+    - 10000
+awards106_3: #小程序观看广告奖励
+  1:
+  - - 15
+    - 4000
+  2:
+  - - 15
+    - 6000
+  3:
+  - - 15
+    - 10000
+awards108_2: #108任务奖励
+  1:
+  - - 16
+    - 50
+  - - 15
+    - 8888
+  - - 401
+    - 2
+  - - 404
+    - 4
+  - - 276
+    - 10
+  - - 277
+    - 10
+  - - 280
+    - 10
+  - - 279
+    - 10
+  - - 275
+    - 10
+operateUserids96and97: #运营账号96跟97任务(测试分享用,可以一直签到无需发放奖励)
+  - 54121776
+  - 54121816
+  - 73377162
+  - 15450514
+  - 57194977
+  - 72084596
+  - 62212599
+  - 4284098
+  - 72086709
+  - 72085905
+  - 10485754
+  - 58724693
+  - 25027248
+  - 65801559
+  - 58724693
+  - 72085240
+  - 60817436
+  - 72856587
+  - 25867988
+  - 25868569
+  - 1225890
+  - 1225780
+  - 68731781
+  - 1789963
+  - 2006422
+  - 44348458
+  - 76309878
+  - 6512364
+  - 6520669
+  - 1563823
+  - 38150541
+  - 62318735
+operateUserids101: #运营账号101任务(测试分享用,可以一直签到无需发放奖励)
+  - 54121776
+operateUserids105: #运营账号105任务(测试分享用,可以一直签到无需发放奖励)
+  - 25867988
+  - 25868569
+  - 1225780
+  - 1225890
+  - 51137255
+inviteawards:
+  - 15: 50000
+    16: 200
+  - 15: 100000
+    16: 500
+authawards: #心悦弹窗实名认证奖励
+  272: 10
+  273: 10
+  274: 10
+  281: 10
+  278: 10
+wehcatauthawards: #心悦微信登录弹窗实名认证奖励
+  idcard:
+    text: "魔法礼包+祈福求神免费使用3天"
+    award:
+      272: 10
+      273: 10
+      274: 10
+      281: 10
+      278: 10
+  phone:
+    text: "魔法礼包+祈福求神免费使用3天"
+    award:
+      272: 10
+      273: 10
+      274: 10
+      281: 10
+      278: 10