class info{ constructor () { this.GetfoodInfo() } async GetfoodInfo() { var res = await indexServe.indexInfo({ url: $_GET("url"), }) } } new info()