migrated from wechat net sdk.