Browse Source

message page

wr_202303
zsw 4 months ago
parent
commit
fa83bc4c1d
  1. 2
      lib/im/SocketClient.dart
  2. 2
      lib/im/database/message.dart
  3. 3
      lib/retrofit/min_api.dart
  4. 4
      lib/retrofit/retrofit_api.dart

2
lib/im/SocketClient.dart

@ -16,7 +16,7 @@ import 'package:shared_preferences/shared_preferences.dart';
class SocketClient { class SocketClient {
//47.93.216.24:9090 线 192.168.10.129:9090 //47.93.216.24:9090 线 192.168.10.129:9090
final String ip = !kDebugMode ? '192.168.10.129' : '47.93.216.24'; final String ip = kDebugMode ? '192.168.10.129' : '47.93.216.24';
final num port = 9090; final num port = 9090;
Socket _socket; Socket _socket;
SharedPreferences _shared; SharedPreferences _shared;

2
lib/im/database/message.dart

@ -79,7 +79,7 @@ createSendMessage(var toId, String content, {String attach, int msgType, userId,
}; };
} }
createMessage(var toId, Uint8List dataBytes, {String attach, int msgType, userId, replyId}) ccc{ createMessage(var toId, Uint8List dataBytes, {String attach, int msgType, userId, replyId}) {
String content = ""; String content = "";
MsgType type = MsgType.values[msgType]; MsgType type = MsgType.values[msgType];
if (type == MsgType.TEXT) { if (type == MsgType.TEXT) {

3
lib/retrofit/min_api.dart

@ -27,9 +27,8 @@ import 'data/shopping_home_config.dart';
part 'min_api.g.dart'; part 'min_api.g.dart';
// const localBaseUrl = "http://192.168.10.54:8765/app/";/// const localBaseUrl = "http://192.168.10.54:8765/app/";///
// const localBaseUrl = "http://pos-test.api.lotus-wallet.com/app/";/// // const localBaseUrl = "http://pos-test.api.lotus-wallet.com/app/";///
const localBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线
const serviceBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线 const serviceBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线

4
lib/retrofit/retrofit_api.dart

@ -70,13 +70,13 @@ import 'data/wx_pay.dart';
part 'retrofit_api.g.dart'; part 'retrofit_api.g.dart';
// const localBaseUrl = "http://192.168.10.54:8766/app/";/// const localBaseUrl = "http://192.168.10.54:8766/app/";///
// const localBaseUrl = "http://platform.test.api.lotus-wallet.com/app/";/// // const localBaseUrl = "http://platform.test.api.lotus-wallet.com/app/";///
const localBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线
const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线 const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线
const ipBaseUrl = "http://whois.pconline.com.cn"; const ipBaseUrl = "http://whois.pconline.com.cn";
///ip
@RestApi(baseUrl: localBaseUrl) @RestApi(baseUrl: localBaseUrl)
abstract class ApiService { abstract class ApiService {

Loading…
Cancel
Save