modify the method of get appid