isAjax()) { $appid = input("appid", 0); $SecretID = input("secretId", ""); $secret_key = input("secretKey", ""); $bucket = input("bucket", ""); $region = input("region", ""); $domain = input("domain", ""); $status = input("status", 0); $data = array( "appid" => $appid, "secretId" => $SecretID, "secretKey" => $secret_key, "region" => $region, "bucket" => $bucket, "domain" => $domain, ); $result = $config_model->setCosConfig($data, $status,$this->site_id,'shop'); return $result; } else { $info_result = $config_model->getCosConfig($this->site_id,'shop'); $info = $info_result["data"]; $this->assign("info", $info); return $this->fetch("config/config"); } } }