kgdxpr 3 years ago
commit aa66824047

@ -114,7 +114,7 @@
if (result.success) { if (result.success) {
window.location.href = '/FengHuang/html/tp/index.html'; window.location.href = '/FengHuang/html/tp/index.html';
} else { } else {
alert(result.msg); alert(result.message);
refreshCaptcha(); refreshCaptcha();
} }
} }

@ -166,7 +166,7 @@ public class LoginPersonController extends Controller {
TouPiaoModel tm = new TouPiaoModel(); TouPiaoModel tm = new TouPiaoModel();
if (tm.haveFinishTouPiao(username)) { if (tm.haveFinishTouPiao(username)) {
resultJson.put("success", false); resultJson.put("success", false);
resultJson.put("msg", "您已经投票完成,不能再次进入系统!"); resultJson.put("message", "您已经投票完成,不能再次进入系统!");
renderJson(resultJson); renderJson(resultJson);
return; return;
} }

@ -62,7 +62,7 @@ public class TouPiaoController extends Controller {
if (tm.haveFinishTouPiao(toupiaoren_tel)) { if (tm.haveFinishTouPiao(toupiaoren_tel)) {
Kv kv = Kv.create(); Kv kv = Kv.create();
kv.put("success", false); kv.put("success", false);
kv.put("msg", "您已经投票完成,不能再次进入系统"); kv.put("message", "您已经投票完成,不能重复投票");
renderJson(kv); renderJson(kv);
return; return;
} }

@ -14,7 +14,7 @@ import java.util.Map;
public class TouPiaoModel { public class TouPiaoModel {
public List<Record> getHouXuanRenList(int type_id) { public List<Record> getHouXuanRenList(int type_id) {
String sql = "select * from t_toupiao_houxuanren where houxuanren_type_id=?"; String sql = "select * from t_toupiao_houxuanren where houxuanren_type_id=? order by sort_id";
return Db.find(sql, type_id); return Db.find(sql, type_id);
} }
@ -34,7 +34,8 @@ public class TouPiaoModel {
public boolean haveFinishTouPiao(String toupiaoren_tel) { public boolean haveFinishTouPiao(String toupiaoren_tel) {
String sql = "select count(1) as c from t_toupiao_result where toupiaoren_tel=?"; String sql = "select count(1) as c from t_toupiao_result where toupiaoren_tel=?";
return Db.findFirst(sql, toupiaoren_tel).getInt("c") > 0; int cnt=Db.findFirst(sql, toupiaoren_tel).getInt("c");
return cnt > 0;
} }
public void save(String toupiaoren_tel, String[] gaojiArray, String[] zhongjiArray) { public void save(String toupiaoren_tel, String[] gaojiArray, String[] zhongjiArray) {
@ -52,7 +53,7 @@ public class TouPiaoModel {
record.set("houxuanren_name", _map.get(s).getStr("toupiaoren_name")); record.set("houxuanren_name", _map.get(s).getStr("toupiaoren_name"));
record.set("houxuanren_type_id", 1); record.set("houxuanren_type_id", 1);
record.set("toupiaoren_tel", s); record.set("toupiaoren_tel", toupiaoren_tel);
record.set("toupiaoren_name", _map.get(s).getStr("toupiaoren_name")); record.set("toupiaoren_name", _map.get(s).getStr("toupiaoren_name"));
record.set("toupiaoren_type_id", toupiaoren_type_id); record.set("toupiaoren_type_id", toupiaoren_type_id);
saveList.add(record); saveList.add(record);
@ -63,7 +64,7 @@ public class TouPiaoModel {
record.set("houxuanren_name", _map.get(s).getStr("toupiaoren_name")); record.set("houxuanren_name", _map.get(s).getStr("toupiaoren_name"));
record.set("houxuanren_type_id", 2); record.set("houxuanren_type_id", 2);
record.set("toupiaoren_tel", s); record.set("toupiaoren_tel", toupiaoren_tel);
record.set("toupiaoren_name", _map.get(s).getStr("toupiaoren_name")); record.set("toupiaoren_name", _map.get(s).getStr("toupiaoren_name"));
record.set("toupiaoren_type_id", toupiaoren_type_id); record.set("toupiaoren_type_id", toupiaoren_type_id);
saveList.add(record); saveList.add(record);

@ -8,4 +8,8 @@ git add -A .
git commit -am 'commit' git commit -am 'commit'
git fetch git fetch
git pull git pull
git push origin master
:: GitHub报错error: src refspec master does not match any
:: https://www.deep-os.com/?id=73
git push origin main

Loading…
Cancel
Save