|
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServlet;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
|
|
|
|
+import com.thmodel.dbconnection.DbConnection;
|
|
|
import com.thmodel.entity.*;
|
|
import com.thmodel.entity.*;
|
|
|
import com.thmodel.service.CashRecordService;
|
|
import com.thmodel.service.CashRecordService;
|
|
|
import com.thmodel.constants.Constants;
|
|
import com.thmodel.constants.Constants;
|
|
@@ -32,6 +33,10 @@ import com.thmodel.service.NimserverService;
|
|
|
|
|
|
|
|
import net.sf.json.JSONObject;
|
|
import net.sf.json.JSONObject;
|
|
|
import com.thmodel.page.Page;
|
|
import com.thmodel.page.Page;
|
|
|
|
|
+import org.jooq.DSLContext;
|
|
|
|
|
+import org.jooq.impl.DSL;
|
|
|
|
|
+
|
|
|
|
|
+import static com.thmodel.jooq.tables.Settings.SETTINGS;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 会员信息接口请求名:memberInfo
|
|
* 会员信息接口请求名:memberInfo
|
|
@@ -560,6 +565,15 @@ public class MemberInfoServlet extends HttpServlet {
|
|
|
resultJson.put("msg", Constants.success);
|
|
resultJson.put("msg", Constants.success);
|
|
|
resultJson.put("data", JSONObject.fromObject(memberinfoService.getAppVersion()));
|
|
resultJson.put("data", JSONObject.fromObject(memberinfoService.getAppVersion()));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //审核状态
|
|
|
|
|
+ else if (action.equalsIgnoreCase("auditStatus")) {
|
|
|
|
|
+ DSLContext ctx = DSL.using(DbConnection.getPara("MySQLURL"));
|
|
|
|
|
+ String status = ctx.select().from(SETTINGS).where(SETTINGS.NAME.equal("audit")).fetchOne(SETTINGS.VALUE);
|
|
|
|
|
+ resultJson.put("msg", Constants.success);
|
|
|
|
|
+ resultJson.put("data", status);
|
|
|
|
|
+ ctx.close();
|
|
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
resultJson.put("msg", Constants.error);
|
|
resultJson.put("msg", Constants.error);
|