Ver código fonte

快递柜改造 登录判断必须是对应的账号类型才能登录

wcq 1 ano atrás
pai
commit
fa88d89c6c

+ 3 - 3
app/src/main/java/com/emato/ich/fragment/SendKeyBoardFragment.java

@@ -285,16 +285,16 @@ public class SendKeyBoardFragment extends Fragment {
                                             Bundle isPayBundle = new Bundle();
                                             isPayBundle.putString("isPay",data.getIsPay());
                                             activity.getBundleMap().put(SendKeyBoardFragment.class.getName(), isPayBundle);
-
+                                            // "30"为供应链账号,定为管理员账号
                                             if("store".equals(finalLoginType) ){
-                                                if("10".equals(data.getDelType())){
+                                                if("10".equals(data.getDelType()) || "30".equals(data.getDelType())){
                                                     NavUtils.navigate(SendKeyBoardFragment.this, R.id.action_sendFragment_to_sendMainFragment);
                                                 } else {
                                                     ToastUtils.make(getContext(), "请用门店账号登录!");
                                                     return;
                                                 }
                                             }else {
-                                                if("20".equals(data.getDelType())){
+                                                if("20".equals(data.getDelType()) || "30".equals(data.getDelType())){
                                                     NavUtils.navigate(SendKeyBoardFragment.this, R.id.action_sendFragment_to_sendMainFragment);
                                                 } else {
                                                     ToastUtils.make(getContext(), "请用快递员账号登录!");