打包流程.rtf 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. {\rtf1\ansi\ansicpg936\cocoartf2639
  2. \cocoatextscaling0\cocoaplatform0{\fonttbl\f0\fnil\fcharset134 PingFangSC-Semibold;\f1\fnil\fcharset0 HelveticaNeue;\f2\fnil\fcharset134 PingFangSC-Regular;
  3. \f3\fnil\fcharset0 HelveticaNeue-Bold;}
  4. {\colortbl;\red255\green255\blue255;}
  5. {\*\expandedcolortbl;;}
  6. {\*\listtable{\list\listtemplateid1\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{circle\}}{\leveltext\leveltemplateid1\'01\uc0\u9702 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}
  7. {\list\listtemplateid2\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0{\*\levelmarker \{circle\}}{\leveltext\leveltemplateid101\'01\uc0\u9702 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid2}}
  8. {\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}{\listoverride\listid2\listoverridecount0\ls2}}
  9. \paperw11900\paperh16840\margl1440\margr1440\vieww18400\viewh12200\viewkind0
  10. \deftab560
  11. \pard\pardeftab560\partightenfactor0
  12. \f0\b\fs40 \cf0 \'b4\'f2\'b0\'fc\'bb\'ec\'cf\'fd\'b4\'fa\'c2\'eb\'c1\'f7\'b3\'cc \
  13. \pard\pardeftab560\slleading20\partightenfactor0
  14. \f1\b0\fs26 \cf0 0.
  15. \f2 \'c8\'b7\'c8\'cf\'c7\'fe\'b5\'c0\'ba\'cd\'bb\'b7\'be\'b3\'a3\'ac\'b4\'f2\'b0\'fc\'b7\'a2\'b2\'bc
  16. \f3\b\fs40 \
  17. \f1\b0\fs26 1.
  18. \f2 \'ca\'b9\'d3\'c3\'d7\'ee\'d0\'c2\'b4\'fa\'c2\'eb\'b7\'c5\'bd\'f8\'b7\'a2\'b2\'bc\'ce\'c4\'bc\'fe\'bc\'d0\'cf\'c2
  19. \f1 \
  20. 2.
  21. \f2 \'c9\'be\'b3\'fd\'b4\'f8\'d3\'d0\'b5\'da\'c8\'fd\'b7\'bd\'d6\'a7\'b8\'b6\'b9\'a6\'c4\'dc\'b5\'c4
  22. \f1 SDK
  23. \f2 \'b4\'f2\'bf\'aa\'b9\'a4\'b3\'cc\'c9\'be\'b3\'fd
  24. \f1 Class->ThirdParty->SocialSDK->Pay
  25. \f2 \'ce\'c4\'bc\'fe
  26. \f1
  27. \f2 \'cc\'ed\'bc\'d3
  28. \f1 NoPay
  29. \f2 \'ce\'c4\'bc\'fe
  30. \f1 \
  31. 3.
  32. \f2 \'c9\'be\'b3\'fd\'b4\'f8\'d3\'d0\'b5\'da\'c8\'fd\'b7\'bd\'d6\'a7\'b8\'b6\'b9\'a6\'c4\'dc\'b5\'c4\'b4\'fa\'c2\'eb\
  33. \f1
  34. \f2 \'a1\'a3
  35. \f1 AppDelegate.m SDK
  36. \f2 \'cd\'b7\'ce\'c4\'bc\'fe\'d2\'fd\'d3\'c3
  37. \f1 #import <AlipaySDK/AlipaySDK.h> \
  38. \f2 \'a1\'a3
  39. \f1 AppDelegate.m
  40. \f2 \'c9\'be\'b3\'fd\'d6\'a7\'b8\'b6\'b1\'a6\'bb\'d8\'b5\'f7\'b4\'fa\'c2\'eb
  41. \f1 handleOpenURL\
  42. \f2 \'c9\'be\'b3\'fd\'d6\'a7\'b8\'b6\'b1\'a6\'cc\'f8\'d7\'aa\'b4\'fa\'c2\'eb
  43. \f1 \
  44. - (
  45. \f3\b BOOL
  46. \f1\b0 )application:(UIApplication *)application handleOpenURL:(NSURL *)url \{\
  47. \f3\b if
  48. \f1\b0 ([url.host isEqualToString:@"safepay"]) \{\
  49. //
  50. \f2 \'cc\'f8\'d7\'aa\'d6\'a7\'b8\'b6\'b1\'a6\'c7\'ae\'b0\'fc\'bd\'f8\'d0\'d0\'d6\'a7\'b8\'b6\'a3\'ac\'b4\'a6\'c0\'ed\'d6\'a7\'b8\'b6\'bd\'e1\'b9\'fb
  51. \f1 \
  52. [[AlipaySDK defaultService] processOrderWithPaymentResult:url standbyCallback:^(NSDictionary *resultDic) \{\
  53. NSLog(@"result = %@",resultDic);\
  54. [NotificationCenter postNotificationName:ALI_APP_PAY_NOTIFICATION object:
  55. \f3\b nil
  56. \f1\b0 userInfo:resultDic];\
  57. \}];\
  58. \}\
  59. //
  60. \f2 \'d5\'e2\'c0\'ef\'bf\'c9\'d2\'d4\'c5\'d0\'b6\'cf\'ca\'c7\'b7\'f1\'ca\'c7\'c9\'e7\'bd\'bb\'c0\'e0
  61. \f1 url\
  62. \f3\b return
  63. \f1\b0 [[XYSocialRegisterHandler sharedInstance] application:application handleOpenURL:url];\
  64. \}\
  65. \
  66. - (
  67. \f3\b BOOL
  68. \f1\b0 )application:(UIApplication *)application openURL:(NSURL *)url sourceApplication:(NSString *)sourceApplication annotation:(
  69. \f3\b id
  70. \f1\b0 )annotation \{\
  71. \f3\b if
  72. \f1\b0 ([url.host isEqualToString:@"safepay"]) \{\
  73. //
  74. \f2 \'cc\'f8\'d7\'aa\'d6\'a7\'b8\'b6\'b1\'a6\'c7\'ae\'b0\'fc\'bd\'f8\'d0\'d0\'d6\'a7\'b8\'b6\'a3\'ac\'b4\'a6\'c0\'ed\'d6\'a7\'b8\'b6\'bd\'e1\'b9\'fb
  75. \f1 \
  76. [[AlipaySDK defaultService] processOrderWithPaymentResult:url standbyCallback:^(NSDictionary *resultDic) \{\
  77. NSLog(@"result = %@",resultDic);\
  78. [NotificationCenter postNotificationName:ALI_APP_PAY_NOTIFICATION object:
  79. \f3\b nil
  80. \f1\b0 userInfo:resultDic];\
  81. \}];\
  82. \}\
  83. //
  84. \f2 \'d5\'e2\'c0\'ef\'bf\'c9\'d2\'d4\'c5\'d0\'b6\'cf\'ca\'c7\'b7\'f1\'ca\'c7\'c9\'e7\'bd\'bb\'c0\'e0
  85. \f1 url\
  86. \f3\b return
  87. \f1\b0 [[XYSocialRegisterHandler sharedInstance] application:application openURL:url sourceApplication:sourceApplication annotation:annotation];\
  88. \}\
  89. \pard\pardeftab560\pardirnatural\partightenfactor0
  90. \ls1\ilvl0\cf0 \
  91. \pard\pardeftab560\slleading20\partightenfactor0
  92. \f2 \cf0 \'c9\'be\'b3\'fd
  93. \f1 XYPayHelpler
  94. \f2 \'ce\'c4\'bc\'fe
  95. \f1
  96. \f2 \'c2\'b7\'be\'b6\'a3\'ba
  97. \f1 Class->Base->Utils->Pay\
  98. XYPayManager
  99. \f2 \'c0\'e0\'d6\'d0\'c9\'be\'b3\'fd
  100. \f1 XYPayHelpler
  101. \f2 \'c0\'e0\'cf\'e0\'b9\'d8\'b4\'fa\'c2\'eb
  102. \f1 \
  103. \pard\pardeftab560\pardirnatural\partightenfactor0
  104. \ls2\ilvl0
  105. \f2 \cf0 \'c9\'be\'b3\'fd\'ce\'a2\'d0\'c5\'d6\'a7\'b8\'b6\'bb\'d8\'b5\'f7\'b4\'fa\'c2\'eb
  106. \f1 XYSocialRegisterHandler
  107. \f2 \'a3\'ac
  108. \f1 Social
  109. \f2 \'ce\'c4\'bc\'fe\'bc\'d0
  110. \f1 \
  111. \pard\pardeftab560\slleading20\partightenfactor0
  112. \cf0 //
  113. \f2 \'d6\'a7\'b8\'b6\'cf\'e0\'b9\'d8\'bb\'d8\'b5\'f7
  114. \f1 \
  115. \f3\b else
  116. \f1\b0
  117. \f3\b if
  118. \f1\b0 ([resp isKindOfClass:[WXNontaxPayResp class]])\{\
  119. \
  120. \}
  121. \f3\b else
  122. \f1\b0
  123. \f3\b if
  124. \f1\b0 ([resp isKindOfClass:[WXPayInsuranceResp class]])\{\
  125. \
  126. \}
  127. \f3\b else
  128. \f1\b0
  129. \f3\b if
  130. \f1\b0 ([resp isKindOfClass:[PayResp class]]) \{\
  131. \
  132. [SVProgressHUD dismiss];\
  133. //
  134. \f2 \'c5\'e4\'d6\'c3\'b3\'c9\'d3\'eb\'d6\'a7\'b8\'b6\'b1\'a6\'d2\'bb\'d1\'f9\'b5\'c4\'bd\'e1\'b9\'fb
  135. \f1 \
  136. NSInteger resultStatus = resp.errCode;\
  137. NSString *resultMessage = resp.errStr?resp.errStr:@"";\
  138. \f3\b if
  139. \f1\b0 (StringIsEmpty(resultMessage)) \{\
  140. \f3\b switch
  141. \f1\b0 (resp.errCode) \{\
  142. \f3\b case
  143. \f1\b0 WXSuccess:\
  144. resultMessage = kLocalizedString(@"
  145. \f2 \'d6\'a7\'b8\'b6\'b3\'c9\'b9\'a6
  146. \f1 ");\
  147. \f3\b break
  148. \f1\b0 ;\
  149. \f3\b case
  150. \f1\b0 WXErrCodeUserCancel:\
  151. resultMessage = kLocalizedString(@"
  152. \f2 \'d6\'a7\'b8\'b6\'c8\'a1\'cf\'fb
  153. \f1 ");\
  154. \f3\b break
  155. \f1\b0 ;\
  156. \f3\b default
  157. \f1\b0 :\
  158. resultMessage = kLocalizedString(@"
  159. \f2 \'d6\'a7\'b8\'b6\'ca\'a7\'b0\'dc
  160. \f1 ");\
  161. \f3\b break
  162. \f1\b0 ;\
  163. \}\
  164. \}\
  165. [NotificationCenter postNotificationName:WECAHT_APP_PAY_NOTIFICATION object:
  166. \f3\b nil
  167. \f1\b0 userInfo:@\{@"resultStatus" : @(resultStatus), @"resultMessage":resultMessage\}];\
  168. \}\
  169. 4.
  170. \f2 \'bb\'ec\'cf\'fd\'b4\'fa\'c2\'eb
  171. \f1 \
  172. \
  173. 438197544812544\
  174. \pard\pardeftab560\slleading20\pardirnatural\partightenfactor0
  175. \cf0 \
  176. \pard\pardeftab560\slleading20\partightenfactor0
  177. \f2 \cf0 \'c6\'f3\'d2\'b5\'b0\'e6\'c8\'ab\'bf\'aa\'b7\'a2
  178. \f1 \
  179. appstore
  180. \f2 \'b0\'e6\'a3\'ac\'c9\'d9\'ba\'dc\'b6\'e0\'b9\'a6\'c4\'dc
  181. \f1 \
  182. \f2 \'b6\'b6\'d2\'f4\'b0\'e6\'c9\'d9\'bf\'aa\'ba\'da
  183. \f1 \
  184. 1 3 4 5 \
  185. 1 4 6 7 \
  186. }