From 1d5b68d7adddf6fc6484f6034c33f47b5a8669f8 Mon Sep 17 00:00:00 2001 From: Seven Tsui <16225583+youyouliangshao@user.noreply.gitee.com> Date: Thu, 18 Sep 2025 16:46:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/chat/index.dart | 2 +- lib/service/http_config.dart | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/pages/chat/index.dart b/lib/pages/chat/index.dart index 8ffc180..5987e68 100644 --- a/lib/pages/chat/index.dart +++ b/lib/pages/chat/index.dart @@ -126,7 +126,7 @@ class ChatPageState extends State { final res = await ImService.instance.followUser(userIDList: [value]); if (res.success) { followed.value = followed.value == 0 ? 1 : 3; - final res = await Http.post(ShopApi.bindSpreadCodeId, data: {"socialCode": value}); + final res = await Http.post(ShopApi.bindSpreadCodeId, data: {"id": value}); if (res != null && res['code'] == 200) { MyDialog.toast('推广码绑定成功', icon: const Icon(Icons.check_circle), style: ToastStyle(backgroundColor: Colors.green.withAlpha(200))); Get.toNamed('/vloger', arguments: {'memberId': value}); diff --git a/lib/service/http_config.dart b/lib/service/http_config.dart index 9c197bd..73bfc6d 100644 --- a/lib/service/http_config.dart +++ b/lib/service/http_config.dart @@ -8,7 +8,9 @@ class HttpConfig { // baseUrl: 'http://43.143.227.203:8099', // baseUrl: 'http://111.62.22.190:8080', // baseUrl: 'http://cjh.wuzhongjie.com.cn', - baseUrl: 'http://82.156.121.2:8880', + // baseUrl: 'http://82.156.121.2:8880', + baseUrl: 'https://www.wuzhongjie.com.cn/prod-api', + // baseUrl: 'http://192.168.1.65:8880', // baseUrl: 'http://192.168.1.22:8080',