Commit f5927b71 by ibm

111

parent 1a2d4215
...@@ -153,23 +153,22 @@ public class getCode extends TK implements API { ...@@ -153,23 +153,22 @@ public class getCode extends TK implements API {
if (!isProduct) { if (!isProduct) {
try { try {
ResultSet rs_bankcard = this.selectFromDB( String sql = "SELECT t.`code` from t_code t WHERE phone = "+phone+" ORDER BY t.id DESC LIMIT 1";
" t_code c ", ResultSet rs_bankcard = this.sqlFromDB(sql);
" c.phone = '" + phone + "' "); // ResultSet rs_bankcard = this.selectFromDB(
// " t_code c ",
// " id = (SELECT MAX(id) FROM t_code WHERE c.phone = '" + phone + "') ");
rs_bankcard.last(); rs_bankcard.last();
if(rs_bankcard.getRow()>=1){ if(rs_bankcard.getRow()>=1){
// code = MapUtil.killQuotes(code, "\"");
// phone_code=code; String act_code=rs_bankcard.getString("code");
// parameter = MapUtil.getValue("parameter", data); phone_code = act_code;
String act_code=rs_bankcard.getString("code");
if(!act_code.equals(phone_code)){ // if(!act_code.equals(phone_code)){
result = result && false; // result = result && false;
failReason = failReason + "t_code info code is not in DB;"; // failReason = failReason + "t_code info code is not in DB;";
} // }
} }
......
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