parent
014e88c7f4
commit
e8915eca23
@ -1,27 +0,0 @@
|
|||||||
//package com.example.PersonalCenter;
|
|
||||||
//
|
|
||||||
//import android.util.Log;
|
|
||||||
//
|
|
||||||
//public class Login {
|
|
||||||
//
|
|
||||||
// private String password;
|
|
||||||
// private String phonenumber;
|
|
||||||
// public Login(String phonenumber,String password){
|
|
||||||
//
|
|
||||||
// this.password = password;
|
|
||||||
// this.phonenumber = phonenumber;
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// public String connUser(){
|
|
||||||
// String infoString = WebServiceGet.executeHttpGet(phonenumber,password,"/Login");
|
|
||||||
//// if(infoString.equals("false")){
|
|
||||||
//// Log.i("Login","+++++++++++fail"+infoString);
|
|
||||||
//// }else {
|
|
||||||
//// Log.i("Login","+++++++++++successs"+infoString);
|
|
||||||
//// }
|
|
||||||
// //登录成功后返回用户名
|
|
||||||
// while(infoString==null){}
|
|
||||||
// Log.i("sucesss",infoString+"ha");
|
|
||||||
// return infoString;
|
|
||||||
// }
|
|
||||||
//}
|
|
@ -1,20 +0,0 @@
|
|||||||
//package com.example.PersonalCenter;
|
|
||||||
//
|
|
||||||
//public class Register {
|
|
||||||
// String phonenumber;
|
|
||||||
// String username;
|
|
||||||
// String password;
|
|
||||||
// public Register(String phonenumber, String username, String password){
|
|
||||||
// this.phonenumber = phonenumber;
|
|
||||||
// this.username = username;
|
|
||||||
// this.password = password;
|
|
||||||
// }
|
|
||||||
// public boolean regist(){
|
|
||||||
// String regRet = WebServicePost.execuHttpPost(username, phonenumber, password,"/Register");
|
|
||||||
// if(regRet.equals("true")){
|
|
||||||
// return true;
|
|
||||||
// }else {
|
|
||||||
// return false;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//}
|
|
@ -1,47 +0,0 @@
|
|||||||
//package com.example.PersonalCenter;
|
|
||||||
//
|
|
||||||
//import android.util.Log;
|
|
||||||
//
|
|
||||||
//import com.hankcs.hanlp.HanLP;
|
|
||||||
//
|
|
||||||
//import java.lang.reflect.Array;
|
|
||||||
//import java.util.ArrayList;
|
|
||||||
//import java.util.HashSet;
|
|
||||||
//import java.util.List;
|
|
||||||
//import java.util.Set;
|
|
||||||
//
|
|
||||||
//public class Search {
|
|
||||||
// public String sickname;
|
|
||||||
// public Search(String sickname){
|
|
||||||
// this.sickname = sickname;
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// public List<Set<String>> search(){
|
|
||||||
// Log.i("search","sick执行了");
|
|
||||||
// //找出对应的8个关键字
|
|
||||||
// List<String> keywordList = HanLP.extractKeyword(sickname,8);
|
|
||||||
//
|
|
||||||
// //针对每一个sickname来查找一下能不能够找到相应的名字
|
|
||||||
// Set<String> mediciesSet = new HashSet<String>();
|
|
||||||
// Set<String> reasonsSet = new HashSet<String>();
|
|
||||||
// for(String i: keywordList){
|
|
||||||
// Log.i("关键词提取",i+"ha");
|
|
||||||
// String resq = SearchServiceGet.executeSearchGet(i,"/Search");
|
|
||||||
// String resq="dd";
|
|
||||||
// if(!resq.equals("fail")) {
|
|
||||||
// String[] me_rea = resq.split("-");
|
|
||||||
// String[] medicines = me_rea[0].split("\\|");
|
|
||||||
// for(String j: medicines) mediciesSet.add(j);
|
|
||||||
// String[] reasons = me_rea[1].split("\\|");
|
|
||||||
// for(String j: reasons) reasonsSet.add(j);
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// List<Set<String>> a = new ArrayList<Set<String>>();
|
|
||||||
// a.add(mediciesSet);
|
|
||||||
// a.add(reasonsSet);
|
|
||||||
// return a;
|
|
||||||
//
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
//}
|
|
Loading…
Reference in new issue