Commit a5ff9a98 by Yiming Liu

Merge pull request #97 from lepdou/portal

save app to dev env
parents b351b484 937b2c00
......@@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
import com.ctrip.apollo.core.enums.Env;
import com.ctrip.apollo.core.dto.AppDTO;
import com.ctrip.apollo.core.exception.ServiceException;
import com.ctrip.apollo.portal.PortalSettings;
import com.ctrip.apollo.portal.api.AdminServiceAPI;
import com.ctrip.apollo.portal.entity.ClusterNavTree;
......@@ -46,10 +47,10 @@ public class AppService {
app.setDataChangeCreatedBy(createBy);
app.setDataChangeCreatedTime(new Date());
app.setDataChangeLastModifiedBy(createBy);
return appAPI.save(Env.LOCAL, app);
return appAPI.save(Env.DEV, app);
} catch (Exception e) {
logger.error("oops! save app error. app id:{}", app.getAppId(), e);
throw e;
throw new ServiceException("call service error.");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment