xuzhiheng 4 жил өмнө
parent
commit
c97e347bcd

+ 4 - 4
service/concurrentTest.go

@@ -10,21 +10,21 @@ func GetConcurrentData(appid string, productId int, c *gin.Context) {
 	if productId == 1000 {
 		utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
 			return ProjectListData(productId, appid, "河南大学", "", "", false)
-		}, "", "", true)
+		}, `{"bidTime":"","projectName":"河南大学","winner":""}`, "127.0.0.1", true)
 	} else if productId == 1001 {
 		utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
 			return ProjectDetailData("5f6bc00c499cb0822d7e3842")
-		}, "", "", true)
+		}, `{"id":"5f6bc00c499cb0822d7e3842"}`, "127.0.0.1", true)
 	} else if productId == 1002 {
 		utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
 			return ProjectListData(productId, appid, "", "中铁十五局集团有限公司", "", true)
-		}, "", "", true)
+		}, `{"winner":"中铁十五局集团有限公司"}`, "127.0.0.1", true)
 	} else {
 		utils.Check(appid, productId, c, func() ([]map[string]interface{}, int, error) {
 			datas := []map[string]interface{}{map[string]interface{}{
 				"title": "中铁十五局集团有限公司",
 			}}
 			return datas, 200, nil
-		}, "", "", true)
+		}, "并发测试", "127.0.0.1", true)
 	}
 }

+ 3 - 3
static/templates/callLog.html

@@ -97,10 +97,10 @@
                                 str += '<td class="td">按剩余量扣除</td>';
                                 str += '<td class="td">' + item.trade_num + '</td>';
                             }else if (item.cost_model === 1){
-                                str += '<td class="td">' + Math.round(item.before/100) + '</td>';
-                                str += '<td class="td">' + Math.round(item.after/100) + '</td>';
+                                str += '<td class="td">' + item.before/100 + '</td>';
+                                str += '<td class="td">' + item.after/100 + '</td>';
                                 str += '<td class="td">按余额扣除</td>';
-                                str += '<td class="td">' + Math.round(item.trade_num/100) + '</td>';
+                                str += '<td class="td">' + item.trade_num/100 + '</td>';
                             }
                             str += '</tr>';
                         }