global class CaseWebService {
    // 关闭个案
    WebService static String CloseCase(String caseId) {
        String result = '1';
        Case  closeCase = new Case();
        closeCase.Id = caseId;
        closeCase.Status = 'Closed';

        try{
            update closeCase;
        } catch (Exception ex) {
            result = ex.getMessage();
        }
        return result;
    }
}