boolean b = PayService.me.NameMobileExists(mobile);
if (b==true){
render("Reg.html");
}else {
//参数有中文则需要URL编码
String url="https://api.xiuxiu888.com/creat_order?id="+codepay_id+"&pay_id="+pay_id+"&price="+price+"&type="+type+"&token="+token+"¶m="+param+"¬ify_url="+notify_url+"&return_url="+return_url+"&mobile="+mobile;
redirect(url);
String sql = "UPDATE CSAlogin SET RmbPoint = RmbPoint + #(price) WHERE mobile= #para(mobile)";
Kv kv = Kv.by("price", price).set("mobile", mobile);
Db.templateByString(sql, kv).update();
}在实现数据库中没有的字段相加减时 Db.templateByString报错 是不是需要导入对应的jar报模板 谢谢!!
项目:JFinal