public function updateSignature() { $errors = $this->errors; //实例化Model $adminModel = new AdminModel(); $adminId = $_SESSION['admin']['adminId']; $signature = $_GET['signature']; $row = $adminModel->updateSignature($adminId, $signature); if ($row) { $result['code'] = '0'; $result['message'] = $errors['0']; } else { $result['code'] = '012'; $result['message'] = $errors['012']; } echo json_encode($result); exit; }