wangxy пре 4 месеци
родитељ
комит
f42f139738
2 измењених фајлова са 7 додато и 7 уклоњено
  1. 6 6
      pages/game/components/constantConfig.js
  2. 1 1
      pages/game/useGame.js

+ 6 - 6
pages/game/components/constantConfig.js

@@ -1,18 +1,18 @@
 // 食物种类列表
 export const foodSpeciesList = [{
-		id: 30,
+		id: 100,
 		imgUrl: '/static/images/game/food-img1.png',
-		credit: 100
+		credit: 30
 	},
 	{
-		id: 100,
+		id: 300,
 		imgUrl: '/static/images/game/food-img2.png',
-		credit: 300
+		credit: 100
 	},
 	{
-		id: 300,
+		id: 600,
 		imgUrl: '/static/images/game/food-img3.png',
-		credit: 600
+		credit: 300
 	}
 ]
 

+ 1 - 1
pages/game/useGame.js

@@ -45,7 +45,7 @@ export function useGame() {
 	}
 	
 	async function handleWeishi({id:cShiwuId,credit:cCredit}, doFinish) {
-		const [err, info] = await catchError(getYouxiWeishi({shiwuId:cShiwuId,credit:cCredit }));
+		const [err, info] = await catchError(getYouxiWeishi({shiwuId:cCredit,credit:cShiwuId }));
 		if (err) {
 			toast("请求异常,请稍后尝试");
 			return;