2014年11月6日微信Api新增長的功能,使用時須要更新Api #pragma mark - JumpToBizProfileReq /* ! @brief 第三方通知微信,打開指定微信號profile頁面 * * 第三方通知微信,打開指定微信號profile頁面 */ @interface JumpToBizProfileReq :BaseReq /** 跳轉到該公衆號的profile * @attention 長度不能超過512字節 */ @property (nonatomic,retain)NSString* username; /** 若是用戶加了該公衆號爲好友,extMsg會上傳到服務器 * @attention 長度不能超過1024字節 */ @property (nonatomic,retain)NSString* extMsg; /** * 跳轉的公衆號類型 * @see WXBizProfileType */ @property (nonatomic,assign)int profileType; @end 使用方法: JumpToBizProfileReq *req = [[JumpToBizProfileReqalloc]init]; req.profileType =WXBizProfileType_Normal; // enum WXBizProfileType{ // WXBizProfileType_Normal = 0, /*普通公衆號添加這一段代碼 */ // WXBizProfileType_Device = 1, /*硬件公衆號添加這一段代碼*/ // }; req.username =@"gh_xxxxxxx";/*公衆號原始ID*/ // req.extMsg = @"extMsg"; /*若爲服務號或訂閱號則本字段爲空,硬件號則填寫相關的硬件二維碼串*/ [WXApisendReq:req];