예제 #1
0
 public function AbolishOrder()
 {
     //验证APP是否登录
     $this->DoAuth();
     $orderID = $this->GetCommonData();
     $orderIDList = array();
     array_push($orderIDList, $orderID);
     $this->LogInfo("APP abolish order, order id is " . $orderID);
     $orderDao = $this->GetModel();
     try {
         $result = MispCommonService::ModifyField($orderDao, $orderIDList, 'order_status', OrderEnum::OrderAbolish);
     } catch (FuegoException $e) {
         $this->errorCode = $e->getCode();
     }
     $this->ReturnJson();
 }
 public function UpdateStatus($status)
 {
     $companyIDList = $this->GetCommonData();
     $this->LogInfo("Update company status, company id list is " . $companyIDList);
     if ("freeze" == $status) {
         $this->LogInfo("Company freeze..");
         $company_status = CompanyEnum::STATUS_FREEZE;
     }
     if ("unfreeze" == $status) {
         $this->LogInfo("Company unfreeze..");
         $company_status = CompanyEnum::STATUS_NORMAL;
     }
     $companyDao = $this->GetModel();
     try {
         $result = MispCommonService::ModifyField($companyDao, $companyIDList, 'company_status', $company_status);
     } catch (FuegoException $e) {
         $this->errorCode = $e->getCode();
     }
     $this->ReturnJson();
 }