Commit 6548a9c4 authored by xgz's avatar xgz

修改美洽更新用户信息

parent 33e46097
# Default ignored files
/shelf/
/workspace.xml
flutter_meiqia
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="1.8" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="testRunner" value="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="1.8" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="BintrayJCenter" />
<option name="name" value="BintrayJCenter" />
<option name="url" value="https://jcenter.bintray.com/" />
</remote-repository>
<remote-repository>
<option name="id" value="Google" />
<option name="name" value="Google" />
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
</remote-repository>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/flutter_meiqia.iml" filepath="$PROJECT_DIR$/.idea/modules/flutter_meiqia.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>
\ No newline at end of file
...@@ -72,7 +72,8 @@ public class FlutterMeiqiaPlugin implements FlutterPlugin, MethodCallHandler, Ac ...@@ -72,7 +72,8 @@ public class FlutterMeiqiaPlugin implements FlutterPlugin, MethodCallHandler, Ac
clientInfo.put("userId",userId); clientInfo.put("userId",userId);
clientInfo.put("userName",userName); clientInfo.put("userName",userName);
clientInfo.put("avatar",avatar); clientInfo.put("avatar",avatar);
builder.setClientInfo(clientInfo); // builder.setClientInfo(clientInfo);
builder.setOrUpdateClientInfo(clientInfo);
Intent intent = builder.build(); Intent intent = builder.build();
context.startActivity(intent); context.startActivity(intent);
......
...@@ -58,7 +58,7 @@ public class SwiftFlutterMeiqiaPlugin: NSObject, FlutterPlugin { ...@@ -58,7 +58,7 @@ public class SwiftFlutterMeiqiaPlugin: NSObject, FlutterPlugin {
let style = manager.chatViewStyle let style = manager.chatViewStyle
style?.navBackButtonImage = UIImage.init(named: "back_black_icon") style?.navBackButtonImage = UIImage.init(named: "back_black_icon")
if let id = userId,let name = userName,let face = avatar { if let id = userId,let name = userName,let face = avatar {
manager.setClientInfo(["ID":id,"name":name,"avatar":face]) manager.setClientInfo(["ID":id,"name":name,"avatar":face], override: true)
} }
manager.presentMQChatViewController(in: navigationController()) manager.presentMQChatViewController(in: navigationController())
result(true); result(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment