178 178
		if (resultMap == null) {
179 179
			logger.error("调用北向接口返回值为空");
180
			return new HashMap<String, String>();
180
			return new HashMap<String, Object>();
181 181
		}
182 182
183 183
		// 4.登录超时,需重新登录
@ -191,7 +191,7 @@ public class NorthboundInterfaceUtil {
191 191
192 192
			if (!loginFlag) {
193 193
				logger.debug("再次调用北向接口登录失败");
194
				return new HashMap<String, String>();
194
				return new HashMap<String, Object>();
195 195
			}
196 196
197 197
			try {
@ -202,12 +202,12 @@ public class NorthboundInterfaceUtil {
202 202
				resultMap = JSON.parseObject(fianlresultJson, Map.class);
203 203
			} catch (Exception e) {
204 204
				logger.error("再次调用北向接口失败: " + e.getMessage());
205
				return new HashMap<String, String>();
205
				return new HashMap<String, Object>();
206 206
			}
207 207
208 208
			if (resultMap == null) {
209 209
				logger.error("再次调用北向接口返回值为空");
210
				return new HashMap<String, String>();
210
				return new HashMap<String, Object>();
211 211
			}
212 212
		}
213 213

+ 3 - 3
location-rescue-service/src/main/resources/application.properties

@ -3,10 +3,10 @@ server.port=8086
3 3
4 4
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
5 5
#spring.datasource.url=jdbc:mysql://localhost:3306/cmp
6
spring.datasource.url=jdbc:mysql://10.11.20.120:3306/common_frm?serverTimezone=Asia/Shanghai&characterEncoding=utf-8&verifyServerCertificate=false&useSSL=false&requireSSL=false
6
spring.datasource.url=jdbc:mysql://10.19.90.34:3307/energy
7 7
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
8
spring.datasource.username=comon_frm
9
spring.datasource.password=1qaz@WSX
8
spring.datasource.username=ebc
9
spring.datasource.password=ebc@123
10 10
11 11
# JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
12 12
#spring.jpa.database=default

TemporaryRep - Nuosi Git Service

临时仓库

My.js 4.3KB

    import React, { Component } from 'react'; import {View,Text,Image,StyleSheet,TouchableOpacity} from 'react-native'; import Header from './Header' export default class My extends Component{ static navigationOptions = ({navigation,screenProps})=>({ tabBarLabel: '我的', tabBarIcon: ({ focused, tintColor }) => <Image style={styles.tabImg} source={`${focused ? require('../static/img/my.png') : require('../static/img/my-unchoose.png')}`}/>, }); render() { return ( <View> <Header title="我的" leftEvent={()=>{}}></Header> {/* <Text>My</Text> */} <View style={{ flexDirection:'row',alignItems:'center',padding:20,}}> <Image style={styles.headImg} source={require('../static/img/touxiang.png')}/> <Text style={{marginLeft:20}}>亲爱的XXXX</Text> </View> <View style={{marginTop:40}}> <TouchableOpacity style={{height:40, flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginHorizontal:20,borderBottomWidth:1,borderBottomColor:'#ddd'}}> <View style={{ flexDirection:'row',alignItems:'center'}}> <Image style={styles.tabImg} source={require('../static/img/fenxiang.png')}/> <Text style={styles.tabtext}>分享</Text> </View> <Image style={styles.tabImg} source={require('../static/img/jiantouyou.png')}/> </TouchableOpacity> <TouchableOpacity style={{height:40, flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginHorizontal:20,borderBottomWidth:1,borderBottomColor:'#ddd'}}> <View style={{ flexDirection:'row',alignItems:'center'}}> <Image style={styles.tabImg} source={require('../static/img/fenxiang.png')}/> <Text style={styles.tabtext}>分享1</Text> </View> <Image style={styles.tabImg} source={require('../static/img/jiantouyou.png')}/> </TouchableOpacity> <TouchableOpacity style={{height:40, flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginHorizontal:20,borderBottomWidth:1,borderBottomColor:'#ddd'}}> <View style={{ flexDirection:'row',alignItems:'center'}}> <Image style={styles.tabImg} source={require('../static/img/fenxiang.png')}/> <Text style={styles.tabtext}>分享2</Text> </View> <Image style={styles.tabImg} source={require('../static/img/jiantouyou.png')}/> </TouchableOpacity> <TouchableOpacity style={{height:40, flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginHorizontal:20,borderBottomWidth:1,borderBottomColor:'#ddd'}}> <View style={{ flexDirection:'row',alignItems:'center'}}> <Image style={styles.tabImg} source={require('../static/img/fenxiang.png')}/> <Text style={styles.tabtext}>分享2</Text> </View> <Image style={styles.tabImg} source={require('../static/img/jiantouyou.png')}/> </TouchableOpacity> <TouchableOpacity style={{height:40, flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginHorizontal:20,borderBottomWidth:1,borderBottomColor:'#ddd'}}> <View style={{ flexDirection:'row',alignItems:'center'}}> <Image style={styles.tabImg} source={require('../static/img/fenxiang.png')}/> <Text style={styles.tabtext}>分享2</Text> </View> <Image style={styles.tabImg} source={require('../static/img/jiantouyou.png')}/> </TouchableOpacity> </View> </View> ) } } const styles = StyleSheet.create({ tabImg:{ width: 20, height: 20, }, headImg:{ width: 40, height: 40, }, tabtext:{ fontSize:10, marginLeft:20 } })