Port old API code to the new API

后续精彩内容,请登录阅读