兼容dev_mode