[webapi] Use pkgcmd to get pkgids for widget02

- Update pkgcmd to get pkgids, and need to update the awk rule
Merge pull request #1059 from xinliux/xinliux/webapi/widget-pkgids

[webapi] Use pkgcmd to get pkgids for widget02