Parcourir la source

update: 挖矿文档

joe il y a 4 ans
Parent
commit
8c724f8584
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      docs/通信协议/activities_mine.md

+ 8 - 1
docs/通信协议/activities_mine.md

@@ -11,6 +11,7 @@ returns
         "symbol": "doge",           // 当前 coin
         "icon":  "http://a.png",    // coin icon
         "price": 2.07,              // 单价(RMB)
+        "step": 0.001,              // 每秒建议步长,可围绕此值随机递增
         "progress": 12.00123,       // 进度, 0 表示 stopped
         "total": 208                // 已获得总数
     },
@@ -37,9 +38,15 @@ POST api/coin/boot
 returns
 ```json
 {
-  
+    "symbol": "doge",           // 当前 coin
+    "icon":  "http://a.png",    // coin icon
+    "price": 2.07,              // 单价(RMB)
+    "step": 0.001,              // 每秒建议步长,可围绕此值随机递增
+    "progress": 12.00123,       // 进度, 0 表示 stopped
+    "total": 208                // 已获得总数
 }
 ```
+**启动成功后, progress>0, 用progress 作为开始**
 
 2. 历史记录