示例#1
0
 public static boolean isLogin() {
   Customer customer = Customer.getInstance();
   if (customer.getLogin() == true) {
     return true;
   }
   return false;
 }
示例#2
0
 public static void setCustomer(Customer mc) {
   Customer customer = Customer.getInstance();
   customer.setId(mc.getId());
   customer.setSid(mc.getSid());
   customer.setName(mc.getName());
   customer.setSign(mc.getSign());
   customer.setFace(mc.getFace());
 }
示例#3
0
 public static Customer getCustomer() {
   return Customer.getInstance();
 }
示例#4
0
 public static void setLogin(Boolean status) {
   Customer customer = Customer.getInstance();
   customer.setLogin(status);
 }