2016.8.19 修复漏洞
This commit is contained in:
parent
c0b7d3759a
commit
5a4d3694cf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
|||
# cache for current jar dependency. DO NOT EDIT.
|
||||
# format is <lastModified> <length> <SHA-1> <path>
|
||||
# Encoding is UTF-8
|
|
@ -11,5 +11,5 @@
|
|||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
target=android-21
|
||||
target=android-20
|
||||
proguard.config=proguard.cfg
|
||||
|
|
|
@ -11,7 +11,8 @@ public class TypeDef {
|
|||
//父分类
|
||||
public static final String[] typeDadList = { "学习", "点餐", "校园服务", "娱乐" };
|
||||
|
||||
//子分类--学习小菜
|
||||
//子分类--学习小菜
|
||||
//后均改为private类型
|
||||
public static final String[] typeSonList1 = { "教室", "图书馆" };
|
||||
|
||||
//子分类--吃饭小菜
|
||||
|
|
|
@ -23,21 +23,21 @@ public class GridAdapter extends BaseAdapter {
|
|||
private int mIndex = 0; // 代表当前需要适配页面中第几个GridView
|
||||
|
||||
//学习小菜
|
||||
public static String[] mSchoolTexts = TypeDef.typeSonList1;
|
||||
public static final String[] mSchoolTexts = TypeDef.typeSonList1;
|
||||
private int[] mSchoolImages = { R.drawable.ic_8, R.drawable.ic_8 };
|
||||
|
||||
//吃饭小菜
|
||||
public static String[] mFoodTexts = TypeDef.typeSonList2;
|
||||
public static final String[] mFoodTexts = TypeDef.typeSonList2;
|
||||
private int[] mFoodImages = { R.drawable.ic_41, R.drawable.ic_42};
|
||||
|
||||
//购物小菜
|
||||
public static String[] mGiftTexts = TypeDef.typeSonList3;
|
||||
public static final String[] mGiftTexts = TypeDef.typeSonList3;
|
||||
private int[] mGiftImages = { R.drawable.ic_7, R.drawable.ic_7,
|
||||
R.drawable.ic_7, R.drawable.ic_7, R.drawable.ic_7,
|
||||
R.drawable.ic_7, R.drawable.ic_7};
|
||||
|
||||
//疯狂小菜
|
||||
public static String[] mOutTexts = TypeDef.typeSonList4;
|
||||
public static final String[] mOutTexts = TypeDef.typeSonList4;
|
||||
private int[] mOutImages = { R.drawable.ic_3, R.drawable.ic_3,
|
||||
R.drawable.ic_3, R.drawable.ic_3, R.drawable.ic_3,
|
||||
R.drawable.ic_3, R.drawable.ic_3 };
|
||||
|
|
|
@ -231,7 +231,8 @@ public class LoginActivity extends Activity implements OnClickListener {
|
|||
return;
|
||||
}
|
||||
JSONObject jsonResponse = (JSONObject) response;
|
||||
if (null != jsonResponse && jsonResponse.length() == 0) {
|
||||
//重复判断
|
||||
if (/*null != jsonResponse &&*/ jsonResponse.length() == 0) {
|
||||
Util.showResultDialog(LoginActivity.this, "返回为空", "登录失败");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue