generated from root/miduo_server
master
parent
9c3afdfe6a
commit
83937647a4
|
@ -2,7 +2,6 @@ package com.jmfy.controller;
|
|||
|
||||
import com.jmfy.dto.CUserDao;
|
||||
import com.jmfy.dto.JsonResult;
|
||||
import com.jmfy.model.CUser;
|
||||
import com.jmfy.thrift.idl.RPCRequestIFace;
|
||||
import com.jmfy.thrift.idl.Result;
|
||||
import com.jmfy.thrift.pool.ClientAdapterPo;
|
||||
|
@ -26,9 +25,9 @@ public class TestController {
|
|||
int userId = Integer.parseInt(request.getParameter("userId"));
|
||||
String payitem = request.getParameter("payitem");
|
||||
JsonResult jsonResult = new JsonResult();
|
||||
CUser cUser = cuserDao.findUserInfo(serverId,userId);
|
||||
if (cUser != null){
|
||||
String[] split = cUser.getCoreAddress().split(":");
|
||||
String userAddress = cuserDao.findUserInfo(serverId,userId);
|
||||
if (userAddress != null){
|
||||
String[] split = userAddress.split(":");
|
||||
String ip = split[0];
|
||||
String port = split[1];
|
||||
//TODO RPC 发货
|
||||
|
|
Loading…
Reference in New Issue