Commit ed887bac authored by 赵然's avatar 赵然

'zr'

parent b6786341
<component name="libraryTable">
<library name="Maven: commons-logging:commons-logging:1.2">
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2.jar!/" />
</CLASSES>
<JAVADOC>
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-javadoc.jar!/" />
</JAVADOC>
<SOURCES>
<root url="jar://$MAVEN_REPOSITORY$/commons-logging/commons-logging/1.2/commons-logging-1.2-sources.jar!/" />
</SOURCES>
</library>
</component>
\ No newline at end of file
...@@ -7,11 +7,9 @@ import org.springframework.stereotype.Controller; ...@@ -7,11 +7,9 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import java.net.URLEncoder; import java.net.URLEncoder;
import java.util.Base64;
import java.util.HashMap; import java.util.HashMap;
import java.util.Map; import java.util.Map;
...@@ -65,13 +63,14 @@ public class CreatUrlModule { ...@@ -65,13 +63,14 @@ public class CreatUrlModule {
System.out.println("userId为:"+userId); System.out.println("userId为:"+userId);
System.out.println("credits为:"+credits); System.out.println("credits为:"+credits);
System.out.println("dcustom为:"+dcustom); System.out.println("dcustom为:"+dcustom);
System.out.println("type为:"+type);
CreditTool tool=new CreditTool(appkey, appsecret); CreditTool tool=new CreditTool(appkey, appsecret);
Map<String, String> params=new HashMap<String, String>(); Map<String, String> params=new HashMap<String, String>();
params.put("uid",userId); params.put("uid",userId);
params.put("credits",credits); params.put("credits",credits);
if(dcustom!=null&&dcustom!=""&&dcustom != "null") { if(dcustom!=null&&dcustom!=""&&dcustom != "null") {
if(type.equals("1")||type == null) { if(type == null || type.equals("1")) {
params.put("dcustom", dcustom); params.put("dcustom", dcustom);
}else { }else {
params.put("dcustom", URLEncoder.encode(dcustom, "UTF-8")); params.put("dcustom", URLEncoder.encode(dcustom, "UTF-8"));
......
...@@ -17,7 +17,7 @@ public class SqlService { ...@@ -17,7 +17,7 @@ public class SqlService {
private String pass = "qwe123"; private String pass = "qwe123";
private String aliyun = "false"; private String aliyun = "false";
//只查一条结果
public Response findSimpleResult(String sql) throws Exception{ public Response findSimpleResult(String sql) throws Exception{
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
...@@ -31,6 +31,7 @@ public class SqlService { ...@@ -31,6 +31,7 @@ public class SqlService {
} }
//查询一组结果
public Response findModeResult(String sql) throws Exception{ public Response findModeResult(String sql) throws Exception{
Map<String, String> map = new HashMap<>(); Map<String, String> map = new HashMap<>();
......
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