public function Delete()
 {
     $Req = $this->GetReqObj();
     $this->LogInfo("customer delete, customer_id is " . $Req->obj);
     //删除会员信息
     $customerDao = $this->GetModel();
     $customerCondition[$customerDao->getPk()] = $Req->obj;
     try {
         $result = MispCommonService::Delete($customerDao, $customerCondition);
     } catch (FuegoException $e) {
         $this->errorCode = $e->getCode();
         $this->ReturnJson();
         return;
     }
     //删除用户信息
     $this->errorCode = MispCommonUserService::Delete($Req->obj);
     $this->ReturnJson();
 }
 public function Delete()
 {
     $Req = $this->GetReqObj();
     $this->LogInfo("admin delete, user_id is " . $Req->obj);
     if ($Req->obj == $_SESSION['user']['user_id']) {
         $this->LogWarn("Delete admin failed, can not delete yourself.");
         $this->errorCode = MispErrorCode::CANT_DELETE_YOURSELF;
         $this->ReturnJson();
         return;
     }
     //删除管理员信息
     $adminDao = $this->GetModel();
     $adminCondition[$adminDao->getPk()] = $Req->obj;
     try {
         $result = MispCommonService::Delete($adminDao, $adminCondition);
     } catch (FuegoException $e) {
         $this->errorCode = $e->getCode();
         $this->ReturnJson();
         return;
     }
     //删除用户信息
     $this->errorCode = MispCommonUserService::Delete($Req->obj);
     $this->ReturnJson();
 }