oak-pay-business 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (513) hide show
  1. package/es/checkers/account.js +14 -1
  2. package/es/checkers/accountOper.js +15 -3
  3. package/es/checkers/application.js +1 -30
  4. package/es/checkers/index.js +4 -0
  5. package/es/checkers/offlineAccount.d.ts +5 -0
  6. package/es/checkers/offlineAccount.js +62 -0
  7. package/es/checkers/pay.js +19 -16
  8. package/es/checkers/wpProduct.d.ts +5 -0
  9. package/es/checkers/wpProduct.js +113 -0
  10. package/es/components/AbstractComponents.d.ts +2 -2
  11. package/es/components/account/deposit/index.json +1 -1
  12. package/es/components/account/deposit/web.js +9 -4
  13. package/es/components/account/deposit/web.pc.js +9 -4
  14. package/es/components/account/detail/index.d.ts +4 -1
  15. package/es/components/account/detail/index.js +79 -60
  16. package/es/components/account/detail/index.json +1 -1
  17. package/es/components/account/detail/index.less +50 -17
  18. package/es/components/account/detail/index.xml +27 -15
  19. package/es/components/account/detail/locales/zh-CN.json +3 -2
  20. package/es/components/account/detail/web.d.ts +11 -7
  21. package/es/components/account/detail/web.js +37 -30
  22. package/es/components/account/detail/web.mobile.module.less +39 -17
  23. package/es/components/account/detail/web.pc.d.ts +8 -6
  24. package/es/components/account/detail/web.pc.js +8 -8
  25. package/es/components/deposit/new/index.d.ts +12 -0
  26. package/es/components/deposit/new/index.js +66 -0
  27. package/es/components/deposit/new/index.json +9 -0
  28. package/es/components/deposit/new/index.less +7 -0
  29. package/es/components/deposit/new/index.xml +38 -0
  30. package/es/components/deposit/new/locales/zh-CN.json +14 -0
  31. package/es/components/deposit/new/web.d.ts +17 -0
  32. package/es/components/deposit/new/web.js +35 -0
  33. package/es/components/deposit/new/web.pc.d.ts +16 -0
  34. package/es/components/deposit/new/web.pc.js +31 -0
  35. package/es/components/deposit/new/web.pc.module.less +11 -0
  36. package/es/components/offlineAccount/config/index.d.ts +4 -0
  37. package/es/components/offlineAccount/config/index.js +33 -0
  38. package/es/components/offlineAccount/config/index.json +1 -0
  39. package/es/components/offlineAccount/config/locales/zh-CN.json +7 -0
  40. package/es/components/offlineAccount/config/web.pc.d.ts +10 -0
  41. package/es/components/offlineAccount/config/web.pc.js +110 -0
  42. package/es/components/offlineAccount/config/web.pc.module.less +55 -0
  43. package/es/components/offlineAccount/index.d.ts +3 -0
  44. package/es/components/offlineAccount/index.js +17 -0
  45. package/es/components/offlineAccount/index.json +1 -0
  46. package/es/components/offlineAccount/locales/zh-CN.json +3 -0
  47. package/es/components/offlineAccount/upsert/index.d.ts +3 -0
  48. package/es/components/offlineAccount/upsert/index.js +35 -0
  49. package/es/components/offlineAccount/upsert/index.json +1 -0
  50. package/es/components/offlineAccount/upsert/locales/zh-CN.json +29 -0
  51. package/es/components/offlineAccount/upsert/web.pc.d.ts +6 -0
  52. package/es/components/offlineAccount/upsert/web.pc.js +79 -0
  53. package/es/components/offlineAccount/web.pc.d.ts +6 -0
  54. package/es/components/offlineAccount/web.pc.js +27 -0
  55. package/es/components/order/pay/index.js +9 -10
  56. package/es/components/order/pay/index.json +1 -1
  57. package/es/components/order/pay/index.xml +4 -6
  58. package/es/components/order/pay/web.d.ts +5 -4
  59. package/es/components/order/pay/web.js +5 -5
  60. package/es/components/order/pay/web.pc.d.ts +5 -4
  61. package/es/components/order/pay/web.pc.js +5 -5
  62. package/es/components/pay/channelPicker2/index.d.ts +7 -0
  63. package/es/components/pay/channelPicker2/index.js +39 -0
  64. package/es/components/pay/channelPicker2/index.json +6 -0
  65. package/es/components/pay/channelPicker2/index.less +31 -0
  66. package/es/components/pay/channelPicker2/index.xml +21 -0
  67. package/es/components/pay/channelPicker2/locales/zh-CN.json +3 -0
  68. package/es/components/pay/channelPicker2/web.d.ts +11 -0
  69. package/es/components/pay/channelPicker2/web.js +9 -0
  70. package/es/components/pay/channelPicker2/web.pc.d.ts +11 -0
  71. package/es/components/pay/channelPicker2/web.pc.js +6 -0
  72. package/es/components/pay/detail/index.d.ts +3 -0
  73. package/es/components/pay/detail/index.js +207 -120
  74. package/es/components/pay/detail/index.json +5 -1
  75. package/es/components/pay/detail/index.less +149 -88
  76. package/es/components/pay/detail/index.xml +135 -135
  77. package/es/components/pay/detail/locales/zh-CN.json +13 -17
  78. package/es/components/pay/detail/web.d.ts +10 -7
  79. package/es/components/pay/detail/web.js +98 -50
  80. package/es/components/pay/detail/web.mobile.module.less +4 -0
  81. package/es/components/pay/detail/web.pc.d.ts +10 -7
  82. package/es/components/pay/detail/web.pc.js +104 -54
  83. package/es/components/pay/detail/web.pc.module.less +16 -2
  84. package/es/components/pay/list/index.js +59 -12
  85. package/es/components/pay/list/locales/zh-CN.json +1 -0
  86. package/es/components/pay/list/web.pc.d.ts +5 -2
  87. package/es/components/pay/list/web.pc.js +54 -16
  88. package/es/components/pay/list/web.pc.module.less +5 -0
  89. package/es/components/payConfig/system/index.js +5 -16
  90. package/es/components/payConfig/system/locales/zh-CN.json +20 -3
  91. package/es/components/payConfig/system/web.pc.d.ts +5 -11
  92. package/es/components/payConfig/system/web.pc.js +147 -78
  93. package/es/components/payConfig/system/web.pc.module.less +7 -0
  94. package/es/components/wechatPay/upsert/index.d.ts +4 -0
  95. package/es/components/wechatPay/upsert/index.js +44 -0
  96. package/es/components/wechatPay/upsert/index.json +1 -0
  97. package/es/components/wechatPay/upsert/locales/zh-CN.json +7 -0
  98. package/es/components/wechatPay/upsert/web.pc.d.ts +7 -0
  99. package/es/components/wechatPay/upsert/web.pc.js +23 -0
  100. package/es/components/wechatPay/upsert/web.pc.module.less +3 -0
  101. package/es/components/withdraw/create/index.js +2 -2
  102. package/es/components/withdraw/create/locales/zh-CN.json +1 -11
  103. package/es/components/withdraw/dry/Detail.pc.js +10 -10
  104. package/es/components/withdraw/dry/index.d.ts +2 -2
  105. package/es/components/withdraw/dry/locales/zh-CN.json +1 -1
  106. package/es/components/wpAccount/config/index.d.ts +3 -0
  107. package/es/components/wpAccount/config/index.js +19 -0
  108. package/es/components/wpAccount/config/index.json +1 -0
  109. package/es/components/wpAccount/config/locales/zh-CN.json +7 -0
  110. package/es/components/wpAccount/config/web.pc.d.ts +8 -0
  111. package/es/components/wpAccount/config/web.pc.js +110 -0
  112. package/es/components/wpAccount/config/web.pc.module.less +55 -0
  113. package/es/components/wpAccount/upsert/index.d.ts +4 -0
  114. package/es/components/wpAccount/upsert/index.js +69 -0
  115. package/es/components/wpAccount/upsert/index.json +1 -0
  116. package/es/components/wpAccount/upsert/locales/zh-CN.json +14 -0
  117. package/es/components/wpAccount/upsert/web.pc.d.ts +8 -0
  118. package/es/components/wpAccount/upsert/web.pc.js +68 -0
  119. package/es/components/wpAccount/upsert/web.pc.module.less +4 -0
  120. package/es/components/wpProduct/config/index.d.ts +5 -0
  121. package/es/components/wpProduct/config/index.js +52 -0
  122. package/es/components/wpProduct/config/index.json +1 -0
  123. package/es/components/wpProduct/config/locales/zh-CN.json +7 -0
  124. package/es/components/wpProduct/config/web.pc.d.ts +9 -0
  125. package/es/components/wpProduct/config/web.pc.js +98 -0
  126. package/es/components/wpProduct/config/web.pc.module.less +62 -0
  127. package/es/components/wpProduct/upsert/index.d.ts +5 -0
  128. package/es/components/wpProduct/upsert/index.js +57 -0
  129. package/es/components/wpProduct/upsert/index.json +1 -0
  130. package/es/components/wpProduct/upsert/locales/zh-CN.json +5 -0
  131. package/es/components/wpProduct/upsert/web.pc.d.ts +8 -0
  132. package/es/components/wpProduct/upsert/web.pc.js +34 -0
  133. package/es/configuration/attrUpdateMatrix.js +119 -8
  134. package/es/configuration/relation.js +2 -1
  135. package/es/context/BackendRuntimeContext.d.ts +489 -1
  136. package/es/context/BackendRuntimeContext.js +2 -14
  137. package/es/data/i18n.js +251 -57
  138. package/es/entities/AbstractAccount.d.ts +10 -0
  139. package/es/entities/AbstractAccount.js +29 -0
  140. package/es/entities/Account.d.ts +4 -2
  141. package/es/entities/Account.js +2 -1
  142. package/es/entities/AccountOper.d.ts +1 -1
  143. package/es/entities/AccountOper.js +6 -2
  144. package/es/entities/Deposit.d.ts +21 -0
  145. package/es/entities/Deposit.js +47 -0
  146. package/es/entities/OfflineAccount.d.ts +23 -0
  147. package/es/entities/OfflineAccount.js +58 -0
  148. package/es/entities/Order.js +1 -1
  149. package/es/entities/Pay.d.ts +9 -6
  150. package/es/entities/Pay.js +9 -4
  151. package/es/entities/SysAccountOper.d.ts +18 -0
  152. package/es/entities/SysAccountOper.js +38 -0
  153. package/es/entities/System.d.ts +19 -1
  154. package/es/entities/System.js +3 -1
  155. package/es/entities/WechatPay.d.ts +10 -0
  156. package/es/entities/WechatPay.js +13 -0
  157. package/es/entities/WithdrawAccount.d.ts +2 -0
  158. package/es/entities/WithdrawAccount.js +1 -0
  159. package/es/entities/WpAccount.d.ts +19 -0
  160. package/es/entities/WpAccount.js +38 -0
  161. package/es/entities/WpProduct.d.ts +17 -0
  162. package/es/entities/WpProduct.js +36 -0
  163. package/es/features/Pay.d.ts +8 -4
  164. package/es/features/Pay.js +45 -12
  165. package/es/features/index.js +2 -7
  166. package/es/locales/common/zh_CN.json +13 -0
  167. package/es/locales/error/zh-CN.json +7 -0
  168. package/es/locales/offlineAccount/zh-CN.json +25 -0
  169. package/es/locales/payChannel/zh-CN.json +3 -16
  170. package/es/oak-app-domain/AbstractAccount/Action.d.ts +5 -0
  171. package/es/oak-app-domain/AbstractAccount/Action.js +2 -0
  172. package/es/oak-app-domain/AbstractAccount/Schema.d.ts +94 -0
  173. package/es/oak-app-domain/AbstractAccount/Schema.js +1 -0
  174. package/es/oak-app-domain/AbstractAccount/Storage.d.ts +3 -0
  175. package/es/oak-app-domain/AbstractAccount/Storage.js +29 -0
  176. package/es/oak-app-domain/AbstractAccount/Style.d.ts +3 -0
  177. package/es/oak-app-domain/AbstractAccount/Style.js +9 -0
  178. package/es/oak-app-domain/AbstractAccount/locales/zh_CN.json +1 -0
  179. package/es/oak-app-domain/Account/Schema.d.ts +77 -40
  180. package/es/oak-app-domain/Account/Storage.js +2 -2
  181. package/es/oak-app-domain/Account/locales/zh_CN.json +1 -1
  182. package/es/oak-app-domain/AccountOper/Schema.d.ts +35 -6
  183. package/es/oak-app-domain/AccountOper/Storage.js +2 -2
  184. package/es/oak-app-domain/AccountOper/Style.js +3 -1
  185. package/es/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  186. package/es/oak-app-domain/ActionDefDict.d.ts +6 -0
  187. package/es/oak-app-domain/ActionDefDict.js +9 -1
  188. package/es/oak-app-domain/Application/Schema.d.ts +12 -7
  189. package/es/oak-app-domain/Application/Storage.js +0 -3
  190. package/es/oak-app-domain/Application/locales/zh_CN.json +1 -1
  191. package/es/oak-app-domain/Deposit/Action.d.ts +11 -0
  192. package/es/oak-app-domain/Deposit/Action.js +11 -0
  193. package/es/oak-app-domain/Deposit/Schema.d.ts +198 -0
  194. package/es/oak-app-domain/Deposit/Schema.js +1 -0
  195. package/es/oak-app-domain/Deposit/Storage.d.ts +3 -0
  196. package/es/oak-app-domain/Deposit/Storage.js +29 -0
  197. package/es/oak-app-domain/Deposit/Style.d.ts +3 -0
  198. package/es/oak-app-domain/Deposit/Style.js +13 -0
  199. package/es/oak-app-domain/Deposit/locales/zh_CN.json +1 -0
  200. package/es/oak-app-domain/EntityDict.d.ts +14 -0
  201. package/es/oak-app-domain/ModiEntity/Schema.d.ts +92 -5
  202. package/es/oak-app-domain/ModiEntity/Storage.js +1 -1
  203. package/es/oak-app-domain/OfflineAccount/Action.d.ts +5 -0
  204. package/es/oak-app-domain/OfflineAccount/Action.js +2 -0
  205. package/es/oak-app-domain/OfflineAccount/Schema.d.ts +207 -0
  206. package/es/oak-app-domain/OfflineAccount/Schema.js +1 -0
  207. package/es/oak-app-domain/OfflineAccount/Storage.d.ts +3 -0
  208. package/es/oak-app-domain/OfflineAccount/Storage.js +70 -0
  209. package/es/oak-app-domain/OfflineAccount/Style.d.ts +3 -0
  210. package/es/oak-app-domain/OfflineAccount/Style.js +18 -0
  211. package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -0
  212. package/es/oak-app-domain/OperEntity/Schema.d.ts +92 -5
  213. package/es/oak-app-domain/OperEntity/Storage.js +1 -1
  214. package/es/oak-app-domain/Pay/Action.d.ts +1 -1
  215. package/es/oak-app-domain/Pay/Action.js +1 -1
  216. package/es/oak-app-domain/Pay/Schema.d.ts +158 -38
  217. package/es/oak-app-domain/Pay/Storage.js +19 -5
  218. package/es/oak-app-domain/Pay/Style.js +1 -0
  219. package/es/oak-app-domain/Pay/locales/zh_CN.json +1 -1
  220. package/es/oak-app-domain/Refund/Schema.d.ts +16 -3
  221. package/es/oak-app-domain/Storage.js +15 -1
  222. package/es/oak-app-domain/StyleDict.js +15 -3
  223. package/es/oak-app-domain/SysAccountOper/Schema.d.ts +284 -0
  224. package/es/oak-app-domain/SysAccountOper/Schema.js +1 -0
  225. package/es/oak-app-domain/SysAccountOper/Storage.d.ts +3 -0
  226. package/es/oak-app-domain/SysAccountOper/Storage.js +43 -0
  227. package/es/oak-app-domain/SysAccountOper/Style.d.ts +3 -0
  228. package/es/oak-app-domain/SysAccountOper/Style.js +10 -0
  229. package/es/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -0
  230. package/es/oak-app-domain/System/Schema.d.ts +91 -8
  231. package/es/oak-app-domain/System/Storage.js +2 -1
  232. package/es/oak-app-domain/System/locales/zh_CN.json +1 -1
  233. package/es/oak-app-domain/User/Schema.d.ts +12 -0
  234. package/es/oak-app-domain/WechatPay/Schema.d.ts +164 -0
  235. package/es/oak-app-domain/WechatPay/Schema.js +1 -0
  236. package/es/oak-app-domain/WechatPay/Storage.d.ts +3 -0
  237. package/es/oak-app-domain/WechatPay/Storage.js +26 -0
  238. package/es/oak-app-domain/WechatPay/locales/zh_CN.json +1 -0
  239. package/es/oak-app-domain/Withdraw/Schema.d.ts +12 -0
  240. package/es/oak-app-domain/WithdrawAccount/Schema.d.ts +71 -7
  241. package/es/oak-app-domain/WithdrawAccount/Storage.js +6 -1
  242. package/es/oak-app-domain/WithdrawAccount/locales/zh_CN.json +1 -1
  243. package/es/oak-app-domain/WpAccount/Action.d.ts +5 -0
  244. package/es/oak-app-domain/WpAccount/Action.js +2 -0
  245. package/es/oak-app-domain/WpAccount/Schema.d.ts +258 -0
  246. package/es/oak-app-domain/WpAccount/Schema.js +1 -0
  247. package/es/oak-app-domain/WpAccount/Storage.d.ts +3 -0
  248. package/es/oak-app-domain/WpAccount/Storage.js +69 -0
  249. package/es/oak-app-domain/WpAccount/Style.d.ts +3 -0
  250. package/es/oak-app-domain/WpAccount/Style.js +9 -0
  251. package/es/oak-app-domain/WpAccount/locales/zh_CN.json +1 -0
  252. package/es/oak-app-domain/WpProduct/Schema.d.ts +209 -0
  253. package/es/oak-app-domain/WpProduct/Schema.js +1 -0
  254. package/es/oak-app-domain/WpProduct/Storage.d.ts +3 -0
  255. package/es/oak-app-domain/WpProduct/Storage.js +33 -0
  256. package/es/oak-app-domain/WpProduct/Style.d.ts +3 -0
  257. package/es/oak-app-domain/WpProduct/Style.js +11 -0
  258. package/es/oak-app-domain/WpProduct/locales/zh_CN.json +1 -0
  259. package/es/oak-app-domain/_SubQuery.d.ts +94 -4
  260. package/es/registry.d.ts +9 -0
  261. package/es/registry.js +8 -0
  262. package/es/triggers/account.js +60 -55
  263. package/es/triggers/accountOper.js +0 -59
  264. package/es/triggers/deposit.d.ts +1 -0
  265. package/es/triggers/deposit.js +13 -0
  266. package/es/triggers/index.js +4 -0
  267. package/es/triggers/pay.d.ts +6 -0
  268. package/es/triggers/pay.js +282 -72
  269. package/es/triggers/refund.d.ts +6 -0
  270. package/es/triggers/refund.js +75 -16
  271. package/es/triggers/sysAccountOper.d.ts +5 -0
  272. package/es/triggers/sysAccountOper.js +36 -0
  273. package/{lib/triggers/acount.d.ts → es/triggers/system.d.ts} +1 -1
  274. package/es/triggers/system.js +30 -0
  275. package/es/triggers/userSystem.js +1 -1
  276. package/es/types/Pay.d.ts +17 -0
  277. package/es/types/Pay.js +1 -0
  278. package/es/types/PayClazz.d.ts +2 -2
  279. package/es/utils/application.d.ts +493 -1
  280. package/es/utils/application.js +37 -4
  281. package/es/utils/pay.d.ts +4 -1
  282. package/es/utils/pay.js +128 -68
  283. package/es/utils/payClazz/Account.d.ts +1 -1
  284. package/es/utils/payClazz/Account.js +23 -19
  285. package/es/utils/payClazz/Offline.d.ts +4 -1
  286. package/es/utils/payClazz/Offline.js +10 -2
  287. package/es/utils/payClazz/WechatPay/WechatPay.d.ts +11 -4
  288. package/es/utils/payClazz/WechatPay/WechatPay.debug.d.ts +4 -3
  289. package/es/utils/payClazz/WechatPay/WechatPay.debug.js +13 -12
  290. package/es/utils/payClazz/WechatPay/WechatPay.js +35 -22
  291. package/es/utils/payClazz/index.d.ts +2 -5
  292. package/es/utils/payClazz/index.js +83 -60
  293. package/es/utils/wpProduct.d.ts +2 -0
  294. package/es/utils/wpProduct.js +19 -0
  295. package/es/utils/wpProductFrontend.d.ts +4 -0
  296. package/es/utils/wpProductFrontend.js +30 -0
  297. package/es/watchers/pay.js +2 -2
  298. package/es/watchers/refund.js +3 -2
  299. package/lib/checkers/account.js +14 -1
  300. package/lib/checkers/accountOper.js +15 -3
  301. package/lib/checkers/application.js +1 -30
  302. package/lib/checkers/index.js +4 -0
  303. package/lib/checkers/offlineAccount.d.ts +5 -0
  304. package/lib/checkers/offlineAccount.js +65 -0
  305. package/lib/checkers/pay.js +18 -15
  306. package/lib/checkers/wpProduct.d.ts +5 -0
  307. package/lib/checkers/wpProduct.js +116 -0
  308. package/lib/components/offlineAccount/config/index.d.ts +4 -0
  309. package/lib/components/offlineAccount/config/index.js +35 -0
  310. package/lib/components/pay/detail/index.d.ts +9 -0
  311. package/lib/components/pay/detail/index.js +297 -0
  312. package/lib/components/payConfig/system/web.pc.d.ts +13 -0
  313. package/lib/components/payConfig/system/web.pc.js +122 -0
  314. package/lib/components/wpAccount/config/index.d.ts +3 -0
  315. package/lib/components/wpAccount/config/index.js +21 -0
  316. package/lib/configuration/attrUpdateMatrix.js +119 -8
  317. package/lib/configuration/relation.js +2 -1
  318. package/lib/context/BackendRuntimeContext.d.ts +489 -1
  319. package/lib/context/BackendRuntimeContext.js +1 -13
  320. package/lib/data/i18n.js +251 -57
  321. package/lib/entities/AbstractAccount.d.ts +10 -0
  322. package/lib/entities/AbstractAccount.js +32 -0
  323. package/lib/entities/Account.d.ts +4 -2
  324. package/lib/entities/Account.js +2 -1
  325. package/lib/entities/AccountOper.d.ts +1 -1
  326. package/lib/entities/AccountOper.js +6 -2
  327. package/lib/entities/Deposit.d.ts +21 -0
  328. package/lib/entities/Deposit.js +50 -0
  329. package/lib/entities/OfflineAccount.d.ts +23 -0
  330. package/lib/entities/OfflineAccount.js +61 -0
  331. package/lib/entities/Order.js +1 -1
  332. package/lib/entities/Pay.d.ts +9 -6
  333. package/lib/entities/Pay.js +9 -4
  334. package/lib/entities/SysAccountOper.d.ts +18 -0
  335. package/lib/entities/SysAccountOper.js +41 -0
  336. package/lib/entities/System.d.ts +19 -1
  337. package/lib/entities/System.js +3 -1
  338. package/lib/entities/WechatPay.d.ts +10 -0
  339. package/lib/entities/WechatPay.js +16 -0
  340. package/lib/entities/WithdrawAccount.d.ts +2 -0
  341. package/lib/entities/WithdrawAccount.js +1 -0
  342. package/lib/entities/WpAccount.d.ts +19 -0
  343. package/lib/entities/WpAccount.js +41 -0
  344. package/lib/entities/WpProduct.d.ts +17 -0
  345. package/lib/entities/WpProduct.js +39 -0
  346. package/lib/features/Pay.d.ts +8 -4
  347. package/lib/features/Pay.js +44 -11
  348. package/lib/features/index.js +4 -9
  349. package/lib/locales/common/zh_CN.json +13 -0
  350. package/lib/locales/error/zh-CN.json +7 -0
  351. package/lib/locales/offlineAccount/zh-CN.json +25 -0
  352. package/lib/locales/payChannel/zh-CN.json +3 -16
  353. package/lib/oak-app-domain/AbstractAccount/Action.d.ts +5 -0
  354. package/lib/oak-app-domain/AbstractAccount/Action.js +5 -0
  355. package/lib/oak-app-domain/AbstractAccount/Schema.d.ts +94 -0
  356. package/lib/oak-app-domain/AbstractAccount/Schema.js +2 -0
  357. package/lib/oak-app-domain/AbstractAccount/Storage.d.ts +3 -0
  358. package/lib/oak-app-domain/AbstractAccount/Storage.js +32 -0
  359. package/lib/oak-app-domain/AbstractAccount/Style.d.ts +3 -0
  360. package/lib/oak-app-domain/AbstractAccount/Style.js +12 -0
  361. package/lib/oak-app-domain/AbstractAccount/locales/zh_CN.json +1 -0
  362. package/lib/oak-app-domain/Account/Schema.d.ts +77 -40
  363. package/lib/oak-app-domain/Account/Storage.js +2 -2
  364. package/lib/oak-app-domain/Account/locales/zh_CN.json +1 -1
  365. package/lib/oak-app-domain/AccountOper/Schema.d.ts +35 -6
  366. package/lib/oak-app-domain/AccountOper/Storage.js +2 -2
  367. package/lib/oak-app-domain/AccountOper/Style.js +3 -1
  368. package/lib/oak-app-domain/AccountOper/locales/zh_CN.json +1 -1
  369. package/lib/oak-app-domain/ActionDefDict.d.ts +6 -0
  370. package/lib/oak-app-domain/ActionDefDict.js +20 -12
  371. package/lib/oak-app-domain/Application/Schema.d.ts +12 -7
  372. package/lib/oak-app-domain/Application/Storage.js +0 -3
  373. package/lib/oak-app-domain/Application/locales/zh_CN.json +1 -1
  374. package/lib/oak-app-domain/Deposit/Action.d.ts +11 -0
  375. package/lib/oak-app-domain/Deposit/Action.js +14 -0
  376. package/lib/oak-app-domain/Deposit/Schema.d.ts +198 -0
  377. package/lib/oak-app-domain/Deposit/Schema.js +2 -0
  378. package/lib/oak-app-domain/Deposit/Storage.d.ts +3 -0
  379. package/lib/oak-app-domain/Deposit/Storage.js +32 -0
  380. package/lib/oak-app-domain/Deposit/Style.d.ts +3 -0
  381. package/lib/oak-app-domain/Deposit/Style.js +16 -0
  382. package/lib/oak-app-domain/Deposit/locales/zh_CN.json +1 -0
  383. package/lib/oak-app-domain/EntityDict.d.ts +14 -0
  384. package/lib/oak-app-domain/ModiEntity/Schema.d.ts +92 -5
  385. package/lib/oak-app-domain/ModiEntity/Storage.js +1 -1
  386. package/lib/oak-app-domain/OfflineAccount/Action.d.ts +5 -0
  387. package/lib/oak-app-domain/OfflineAccount/Action.js +5 -0
  388. package/lib/oak-app-domain/OfflineAccount/Schema.d.ts +207 -0
  389. package/lib/oak-app-domain/OfflineAccount/Schema.js +2 -0
  390. package/lib/oak-app-domain/OfflineAccount/Storage.d.ts +3 -0
  391. package/lib/oak-app-domain/OfflineAccount/Storage.js +73 -0
  392. package/lib/oak-app-domain/OfflineAccount/Style.d.ts +3 -0
  393. package/lib/oak-app-domain/OfflineAccount/Style.js +21 -0
  394. package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +1 -0
  395. package/lib/oak-app-domain/OperEntity/Schema.d.ts +92 -5
  396. package/lib/oak-app-domain/OperEntity/Storage.js +1 -1
  397. package/lib/oak-app-domain/Pay/Action.d.ts +1 -1
  398. package/lib/oak-app-domain/Pay/Action.js +1 -1
  399. package/lib/oak-app-domain/Pay/Schema.d.ts +158 -38
  400. package/lib/oak-app-domain/Pay/Storage.js +19 -5
  401. package/lib/oak-app-domain/Pay/Style.js +1 -0
  402. package/lib/oak-app-domain/Pay/locales/zh_CN.json +1 -1
  403. package/lib/oak-app-domain/Refund/Schema.d.ts +16 -3
  404. package/lib/oak-app-domain/Storage.js +30 -16
  405. package/lib/oak-app-domain/StyleDict.js +68 -56
  406. package/lib/oak-app-domain/SysAccountOper/Schema.d.ts +284 -0
  407. package/lib/oak-app-domain/SysAccountOper/Schema.js +2 -0
  408. package/lib/oak-app-domain/SysAccountOper/Storage.d.ts +3 -0
  409. package/lib/oak-app-domain/SysAccountOper/Storage.js +46 -0
  410. package/lib/oak-app-domain/SysAccountOper/Style.d.ts +3 -0
  411. package/lib/oak-app-domain/SysAccountOper/Style.js +13 -0
  412. package/lib/oak-app-domain/SysAccountOper/locales/zh_CN.json +1 -0
  413. package/lib/oak-app-domain/System/Schema.d.ts +91 -8
  414. package/lib/oak-app-domain/System/Storage.js +2 -1
  415. package/lib/oak-app-domain/System/locales/zh_CN.json +1 -1
  416. package/lib/oak-app-domain/User/Schema.d.ts +12 -0
  417. package/lib/oak-app-domain/WechatPay/Schema.d.ts +164 -0
  418. package/lib/oak-app-domain/WechatPay/Schema.js +2 -0
  419. package/lib/oak-app-domain/WechatPay/Storage.d.ts +3 -0
  420. package/lib/oak-app-domain/WechatPay/Storage.js +29 -0
  421. package/lib/oak-app-domain/WechatPay/locales/zh_CN.json +1 -0
  422. package/lib/oak-app-domain/Withdraw/Schema.d.ts +12 -0
  423. package/lib/oak-app-domain/WithdrawAccount/Schema.d.ts +71 -7
  424. package/lib/oak-app-domain/WithdrawAccount/Storage.js +6 -1
  425. package/lib/oak-app-domain/WithdrawAccount/locales/zh_CN.json +1 -1
  426. package/lib/oak-app-domain/WpAccount/Action.d.ts +5 -0
  427. package/lib/oak-app-domain/WpAccount/Action.js +5 -0
  428. package/lib/oak-app-domain/WpAccount/Schema.d.ts +258 -0
  429. package/lib/oak-app-domain/WpAccount/Schema.js +2 -0
  430. package/lib/oak-app-domain/WpAccount/Storage.d.ts +3 -0
  431. package/lib/oak-app-domain/WpAccount/Storage.js +72 -0
  432. package/lib/oak-app-domain/WpAccount/Style.d.ts +3 -0
  433. package/lib/oak-app-domain/WpAccount/Style.js +12 -0
  434. package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +1 -0
  435. package/lib/oak-app-domain/WpProduct/Schema.d.ts +209 -0
  436. package/lib/oak-app-domain/WpProduct/Schema.js +2 -0
  437. package/lib/oak-app-domain/WpProduct/Storage.d.ts +3 -0
  438. package/lib/oak-app-domain/WpProduct/Storage.js +36 -0
  439. package/lib/oak-app-domain/WpProduct/Style.d.ts +3 -0
  440. package/lib/oak-app-domain/WpProduct/Style.js +14 -0
  441. package/lib/oak-app-domain/WpProduct/locales/zh_CN.json +1 -0
  442. package/lib/oak-app-domain/_SubQuery.d.ts +94 -4
  443. package/lib/registry.d.ts +9 -0
  444. package/lib/registry.js +12 -0
  445. package/lib/triggers/account.js +59 -56
  446. package/lib/triggers/accountOper.js +0 -61
  447. package/lib/triggers/deposit.d.ts +1 -0
  448. package/lib/triggers/deposit.js +14 -0
  449. package/lib/triggers/index.js +4 -0
  450. package/lib/triggers/pay.d.ts +6 -0
  451. package/lib/triggers/pay.js +244 -78
  452. package/lib/triggers/refund.d.ts +6 -0
  453. package/lib/triggers/refund.js +77 -16
  454. package/lib/triggers/sysAccountOper.d.ts +5 -0
  455. package/lib/triggers/sysAccountOper.js +39 -0
  456. package/lib/triggers/system.d.ts +5 -0
  457. package/lib/triggers/system.js +33 -0
  458. package/lib/triggers/userSystem.js +1 -1
  459. package/lib/types/Pay.d.ts +17 -0
  460. package/lib/types/Pay.js +2 -0
  461. package/lib/types/PayClazz.d.ts +2 -2
  462. package/lib/utils/application.d.ts +493 -1
  463. package/lib/utils/application.js +39 -5
  464. package/lib/utils/pay.d.ts +4 -1
  465. package/lib/utils/pay.js +133 -73
  466. package/lib/utils/payClazz/Account.d.ts +1 -1
  467. package/lib/utils/payClazz/Account.js +8 -6
  468. package/lib/utils/payClazz/Offline.d.ts +4 -1
  469. package/lib/utils/payClazz/Offline.js +10 -2
  470. package/lib/utils/payClazz/WechatPay/WechatPay.d.ts +11 -4
  471. package/lib/utils/payClazz/WechatPay/WechatPay.debug.d.ts +4 -3
  472. package/lib/utils/payClazz/WechatPay/WechatPay.debug.js +13 -12
  473. package/lib/utils/payClazz/WechatPay/WechatPay.js +35 -22
  474. package/lib/utils/payClazz/index.d.ts +2 -5
  475. package/lib/utils/payClazz/index.js +84 -61
  476. package/lib/utils/wpProduct.d.ts +2 -0
  477. package/lib/utils/wpProduct.js +23 -0
  478. package/lib/utils/wpProductFrontend.d.ts +4 -0
  479. package/lib/utils/wpProductFrontend.js +35 -0
  480. package/lib/watchers/pay.js +2 -2
  481. package/lib/watchers/refund.js +3 -2
  482. package/package.json +1 -2
  483. package/src/entities/AbstractAccount.ts +51 -0
  484. package/src/entities/Account.ts +6 -3
  485. package/src/entities/AccountOper.ts +7 -3
  486. package/src/entities/Deposit.ts +76 -0
  487. package/src/entities/OfflineAccount.ts +90 -0
  488. package/src/entities/Order.ts +2 -1
  489. package/src/entities/Pay.ts +19 -10
  490. package/src/entities/SysAccountOper.ts +63 -0
  491. package/src/entities/System.ts +25 -2
  492. package/src/entities/WechatPay.ts +31 -0
  493. package/src/entities/WithdrawAccount.ts +3 -0
  494. package/src/entities/WpAccount.ts +67 -0
  495. package/src/entities/WpProduct.ts +62 -0
  496. package/lib/aspects/sample.d.ts +0 -2
  497. package/lib/aspects/sample.js +0 -7
  498. package/lib/config/connector.d.ts +0 -4
  499. package/lib/config/connector.js +0 -8
  500. package/lib/configuration/server.d.ts +0 -5
  501. package/lib/configuration/server.js +0 -10
  502. package/lib/entities/Application.d.ts +0 -5
  503. package/lib/entities/Application.js +0 -39
  504. package/lib/exceptionHandler.d.ts +0 -8
  505. package/lib/exceptionHandler.js +0 -51
  506. package/lib/features/Console.d.ts +0 -12
  507. package/lib/features/Console.js +0 -18
  508. package/lib/features/Menu.d.ts +0 -20
  509. package/lib/features/Menu.js +0 -65
  510. package/lib/features/Sample.d.ts +0 -15
  511. package/lib/features/Sample.js +0 -17
  512. package/lib/triggers/acount.js +0 -23
  513. package/src/entities/Application.ts +0 -54
@@ -1,2 +1,15 @@
1
- const checkers = [];
1
+ const checkers = [
2
+ {
3
+ entity: 'account',
4
+ type: 'row',
5
+ filter: {
6
+ system: {
7
+ account$entity: {
8
+ "#sqp": 'not in',
9
+ },
10
+ },
11
+ },
12
+ action: 'create',
13
+ }
14
+ ];
2
15
  export default checkers;
@@ -63,9 +63,15 @@ const checkers = [
63
63
  }
64
64
  break;
65
65
  }
66
- case 'loss': {
67
- if (totalPlus >= 0 || availPlus > 0 || totalPlus !== availPlus) {
68
- throw new OakInputIllegalException('accountOper', ['availPlus'], 'accountOper为consume时,其totalPlus/availPlus必须为0或负数,且totalPlus的绝对值要更大');
66
+ case 'earn': {
67
+ if (totalPlus <= 0 || availPlus < 0) {
68
+ throw new OakInputIllegalException('accountOper', ['availPlus'], 'accountOper为earn时,其totalPlus必须为正数、availPlus必须为非负数');
69
+ }
70
+ break;
71
+ }
72
+ case 'encash': {
73
+ if (totalPlus !== 0 || availPlus <= 0) {
74
+ throw new OakInputIllegalException('accountOper', ['availPlus'], 'accountOper为encash时,其totalPlus必须为0、availPlus必须为正数');
69
75
  }
70
76
  break;
71
77
  }
@@ -75,6 +81,12 @@ const checkers = [
75
81
  }
76
82
  break;
77
83
  }
84
+ case 'tax': {
85
+ if (totalPlus >= 0 || availPlus >= 0 || totalPlus !== availPlus) {
86
+ throw new OakInputIllegalException('accountOper', ['totalPlus', 'availPlus'], 'accountOper为tax时,其totalPlus/availPlus必须为负且相等');
87
+ }
88
+ break;
89
+ }
78
90
  default: {
79
91
  assert(false);
80
92
  break;
@@ -1,31 +1,2 @@
1
- import { PAY_CHANNEL_WECHAT_APP_NAME, PAY_CHANNEL_WECHAT_H5_NAME, PAY_CHANNEL_WECHAT_JS_NAME, PAY_CHANNEL_WECHAT_MP_NAME, PAY_CHANNEL_WECHAT_NATIVE_NAME } from '../types/PayConfig';
2
- import { OakInputIllegalException } from 'oak-domain/lib/types';
3
- const checkers = [
4
- {
5
- type: 'data',
6
- entity: 'application',
7
- action: 'update',
8
- checker: (data, context) => {
9
- const { payConfig } = (data || {});
10
- if (payConfig) {
11
- const wechatPayConfigs = payConfig.filter(ele => [
12
- PAY_CHANNEL_WECHAT_APP_NAME,
13
- PAY_CHANNEL_WECHAT_H5_NAME,
14
- PAY_CHANNEL_WECHAT_JS_NAME,
15
- PAY_CHANNEL_WECHAT_MP_NAME,
16
- PAY_CHANNEL_WECHAT_NATIVE_NAME
17
- ].includes(ele.channel));
18
- if (wechatPayConfigs) {
19
- wechatPayConfigs.forEach((config) => {
20
- const { apiV3Key } = config;
21
- if (apiV3Key?.length && apiV3Key.length !== 32) {
22
- throw new OakInputIllegalException('appliation', ['payConfig'], 'apiV3Key长度只能是32位');
23
- }
24
- });
25
- }
26
- }
27
- return 1;
28
- }
29
- }
30
- ];
1
+ const checkers = [];
31
2
  export default checkers;
@@ -2,10 +2,14 @@ import aoCheckers from './accountOper';
2
2
  import payCheckers from './pay';
3
3
  import orderCheckers from './order';
4
4
  import applicationCheckers from './application';
5
+ import offlineAccountCheckers from './offlineAccount';
6
+ import wpProductCheckers from './wpProduct';
5
7
  const checkers = [
6
8
  ...aoCheckers,
7
9
  ...payCheckers,
8
10
  ...orderCheckers,
9
11
  ...applicationCheckers,
12
+ ...offlineAccountCheckers,
13
+ ...wpProductCheckers,
10
14
  ];
11
15
  export default checkers;
@@ -0,0 +1,5 @@
1
+ import { Checker } from 'oak-domain/lib/types/Auth';
2
+ import { EntityDict } from '../oak-app-domain';
3
+ import { RuntimeCxt } from '../types/RuntimeCxt';
4
+ declare const checkers: Checker<EntityDict, 'offlineAccount', RuntimeCxt>[];
5
+ export default checkers;
@@ -0,0 +1,62 @@
1
+ import assert from 'assert';
2
+ import { OakAttrNotNullException, OakInputIllegalException } from 'oak-domain/lib/types';
3
+ import { pipeline } from 'oak-domain/lib/utils/executor';
4
+ function checkAttributes(data) {
5
+ const { type, channel, name, qrCode } = data;
6
+ switch (type) {
7
+ case 'bank': {
8
+ if (!channel || !name || !qrCode) {
9
+ throw new OakAttrNotNullException('offlineAccount', ['channel', 'name', 'qrCode'].filter(ele => !data[ele]));
10
+ }
11
+ break;
12
+ }
13
+ case 'shouqianba':
14
+ case 'wechat':
15
+ case 'alipay': {
16
+ if (!name && !qrCode) {
17
+ throw new OakInputIllegalException('offlineAccount', ['name', 'qrCode'], 'offlineAccount::error.nameQrCodeBothNull');
18
+ }
19
+ break;
20
+ }
21
+ case 'others': {
22
+ if (!name && !qrCode) {
23
+ throw new OakAttrNotNullException('offlineAccount', ['name', 'qrCode']);
24
+ }
25
+ if (!channel) {
26
+ throw new OakAttrNotNullException('offlineAccount', ['channel']);
27
+ }
28
+ }
29
+ }
30
+ }
31
+ const checkers = [
32
+ {
33
+ entity: 'offlineAccount',
34
+ action: 'create',
35
+ type: 'data',
36
+ checker(data) {
37
+ assert(!(data instanceof Array));
38
+ checkAttributes(data);
39
+ }
40
+ },
41
+ {
42
+ entity: 'offlineAccount',
43
+ action: 'update',
44
+ type: 'logicalData',
45
+ checker: (operation, context) => {
46
+ const { data, filter } = operation;
47
+ return pipeline(() => context.select('offlineAccount', {
48
+ data: {
49
+ id: 1,
50
+ type: 1,
51
+ channel: 1,
52
+ name: 1,
53
+ qrCode: 1,
54
+ },
55
+ filter
56
+ }, { dontCollect: true }), (accounts) => {
57
+ accounts.forEach((ele) => checkAttributes(Object.assign(ele, data)));
58
+ });
59
+ }
60
+ }
61
+ ];
62
+ export default checkers;
@@ -1,8 +1,6 @@
1
- import { OakInputIllegalException } from 'oak-domain/lib/types';
2
- import { CHECKER_MAX_PRIORITY } from 'oak-domain/lib/types/Trigger';
1
+ import { OakAttrNotNullException, OakInputIllegalException } from 'oak-domain/lib/types';
3
2
  import { pipeline } from 'oak-domain/lib/utils/executor';
4
3
  import assert from 'assert';
5
- import { PAY_CHANNEL_ACCOUNT_NAME, PAY_CHANNEL_OFFLINE_NAME } from '../types/PayConfig';
6
4
  const checkers = [
7
5
  {
8
6
  entity: 'pay',
@@ -24,26 +22,19 @@ const checkers = [
24
22
  type: 'data',
25
23
  action: 'create',
26
24
  checker(data) {
27
- const { channel, price, orderId, accountId } = data;
25
+ const { entity, entityId, price, orderId, depositId } = data;
28
26
  if (price <= 0) {
29
27
  throw new OakInputIllegalException('pay', ['price'], '支付金额必须大于0');
30
28
  }
31
29
  if (!orderId) {
32
30
  // 充值类订单
33
- if (!accountId) {
31
+ if (!depositId) {
34
32
  throw new OakInputIllegalException('pay', ['accountId'], '充值类支付必须指定accountId');
35
33
  }
36
- else if (channel === PAY_CHANNEL_ACCOUNT_NAME) {
34
+ else if (entity === 'account') {
37
35
  throw new OakInputIllegalException('pay', ['channel'], '充值类支付不能使用帐户支付');
38
36
  }
39
37
  }
40
- else {
41
- if (channel === PAY_CHANNEL_ACCOUNT_NAME) {
42
- if (!accountId) {
43
- throw new OakInputIllegalException('pay', ['accountId'], '使用account支付必须指向accountId');
44
- }
45
- }
46
- }
47
38
  }
48
39
  },
49
40
  {
@@ -103,20 +94,32 @@ const checkers = [
103
94
  }
104
95
  // 非root用户只能手动成功offline类型的pay
105
96
  return {
106
- channel: PAY_CHANNEL_OFFLINE_NAME,
97
+ entity: 'offlineAccount',
107
98
  };
108
99
  }
109
100
  },
101
+ {
102
+ entity: 'pay',
103
+ action: 'succeedPaying',
104
+ type: 'data',
105
+ checker(data) {
106
+ assert(!(data instanceof Array));
107
+ const { successAt } = data;
108
+ if (!successAt) {
109
+ throw new OakAttrNotNullException('pay', ['successAt']);
110
+ }
111
+ }
112
+ },
110
113
  {
111
114
  // 如果在开始支付或者继续支付过程中,paid达到了price,pay的状态可以改为paid
112
115
  entity: 'pay',
113
116
  type: 'logical',
114
117
  action: ['continuePaying', 'startPaying'],
115
- priority: CHECKER_MAX_PRIORITY - 1, // 要超过action矩阵定义的赋state值
118
+ // priority: CHECKER_MAX_PRIORITY - 1, // 要超过action矩阵定义的赋state值
116
119
  checker: (operation, context) => {
117
120
  const { data, filter } = operation;
118
121
  assert(filter && typeof filter.id === 'string');
119
- const { paid } = data;
122
+ const { paid } = data || {};
120
123
  if (paid) {
121
124
  return pipeline(() => context.select('pay', {
122
125
  data: {
@@ -0,0 +1,5 @@
1
+ import { Checker } from 'oak-domain/lib/types/Auth';
2
+ import { EntityDict } from '../oak-app-domain';
3
+ import { RuntimeCxt } from '../types/RuntimeCxt';
4
+ declare const checkers: Checker<EntityDict, 'wpProduct', RuntimeCxt>[];
5
+ export default checkers;
@@ -0,0 +1,113 @@
1
+ import { pipeline } from 'oak-domain/lib/utils/executor';
2
+ import assert from 'assert';
3
+ import { getAppTypeFromProductType } from '../utils/wpProduct';
4
+ import { OakInputIllegalException } from 'oak-domain/lib/types';
5
+ const checkers = [
6
+ {
7
+ entity: 'wpProduct',
8
+ action: 'create',
9
+ type: 'row',
10
+ filter(operation) {
11
+ const { data } = operation;
12
+ if (data) {
13
+ const { type, enabled } = data;
14
+ if (enabled) {
15
+ return {
16
+ application: {
17
+ wpProduct$application: {
18
+ "#sqp": 'not in',
19
+ enabled: true,
20
+ type,
21
+ }
22
+ }
23
+ };
24
+ }
25
+ }
26
+ },
27
+ errMsg: '同一应用上不能存在同样类型的支付产品',
28
+ },
29
+ {
30
+ entity: 'wpProduct',
31
+ action: 'update',
32
+ type: 'row',
33
+ filter(operation, context) {
34
+ const { data, filter } = operation;
35
+ if (data && data.enabled) {
36
+ assert(filter.id && typeof filter.id === 'string');
37
+ return pipeline(() => context.select('wpProduct', {
38
+ data: {
39
+ id: 1,
40
+ type: 1,
41
+ applicationId: 1,
42
+ },
43
+ filter,
44
+ }, { dontCollect: true }), (wpProducts) => {
45
+ const [wpProduct] = wpProducts;
46
+ const { type } = wpProduct;
47
+ return {
48
+ application: {
49
+ wpProduct$application: {
50
+ "#sqp": 'not in',
51
+ enabled: true,
52
+ type,
53
+ },
54
+ },
55
+ };
56
+ });
57
+ }
58
+ },
59
+ errMsg: 'error::wpProduct.repeatProductsOnSameApp',
60
+ },
61
+ {
62
+ entity: 'wpProduct',
63
+ action: 'create',
64
+ type: 'logicalData',
65
+ checker(operation, context) {
66
+ const { data } = operation;
67
+ if (data) {
68
+ const { type, applicationId } = data;
69
+ if (type && applicationId) {
70
+ return pipeline(() => context.select('application', {
71
+ data: {
72
+ id: 1,
73
+ type: 1,
74
+ config: 1,
75
+ },
76
+ filter: {
77
+ id: applicationId,
78
+ }
79
+ }, { dontCollect: true }), (applications) => {
80
+ const { type, config } = applications[0];
81
+ if (!getAppTypeFromProductType(data.type).includes(type)) {
82
+ throw new OakInputIllegalException('wpProduct', ['applicationId'], 'error::wpProduct.TypeConflict');
83
+ }
84
+ switch (type) {
85
+ case 'web': {
86
+ const { wechat } = config;
87
+ if (!wechat?.appId) {
88
+ throw new OakInputIllegalException('wpProduct', ['applicationId'], 'error::wpProduct.NoWechatInfoOnApp');
89
+ }
90
+ break;
91
+ }
92
+ case 'wechatMp': {
93
+ const { appId } = config;
94
+ if (!appId) {
95
+ throw new OakInputIllegalException('wpProduct', ['applicationId'], 'error::wpProduct.NoWechatInfoOnApp');
96
+ }
97
+ break;
98
+ }
99
+ case 'wechatPublic': {
100
+ const { appId } = config;
101
+ if (!appId) {
102
+ throw new OakInputIllegalException('wpProduct', ['applicationId'], 'error::wpProduct.NoWechatInfoOnApp');
103
+ }
104
+ break;
105
+ }
106
+ }
107
+ });
108
+ }
109
+ }
110
+ }
111
+ },
112
+ ];
113
+ export default checkers;
@@ -20,7 +20,7 @@ declare const List: <T extends keyof EntityDict>(props: ReactComponentProps<Enti
20
20
  rowSelection?: any;
21
21
  hideHeader?: boolean | undefined;
22
22
  disableSerialNumber?: boolean | undefined;
23
- size?: "small" | "large" | "middle" | undefined;
23
+ size?: "small" | "middle" | "large" | undefined;
24
24
  scroll?: ({
25
25
  x?: string | number | true | undefined;
26
26
  y?: string | number | undefined;
@@ -46,7 +46,7 @@ declare const ListPro: <T extends keyof EntityDict>(props: {
46
46
  tablePagination?: any;
47
47
  rowSelection?: any;
48
48
  disableSerialNumber?: boolean | undefined;
49
- size?: "small" | "large" | "middle" | undefined;
49
+ size?: "small" | "middle" | "large" | undefined;
50
50
  scroll?: any;
51
51
  locale?: any;
52
52
  opWidth?: number | undefined;
@@ -5,6 +5,6 @@
5
5
  "l-input": "@oak-frontend-base/miniprogram_npm/lin-ui/input/index",
6
6
  "l-button": "@oak-frontend-base/miniprogram_npm/lin-ui/button/index",
7
7
  "l-notice-bar": "@oak-frontend-base/miniprogram_npm/lin-ui/notice-bar/index",
8
- "pay-channel-picker": "../../pay/channelPicker/index"
8
+ "pay-channel-picker": "../../pay/channelPicker2/index"
9
9
  }
10
10
  }
@@ -1,5 +1,4 @@
1
1
  import React from 'react';
2
- import ChannelPicker from '../../pay/channelPicker';
3
2
  import { Form, Input, NoticeBar } from 'antd-mobile';
4
3
  export default function Render(props) {
5
4
  const { depositMax, payConfig, tips, price, channel, meta, priceStr, onSetChannel, onSetMeta } = props.data;
@@ -22,9 +21,15 @@ export default function Render(props) {
22
21
  {price > 0 && <Form.Item label={<span>
23
22
  {t('label.channel')}:
24
23
  </span>}>
25
- <ChannelPicker payConfig={payConfig} onPick={(channel) => {
26
- onSetChannel(channel);
27
- }} channel={channel} meta={meta} onSetMeta={(meta) => onSetMeta(meta)}/>
24
+ {/* <ChannelPicker
25
+ payConfig={payConfig}
26
+ onPick={(channel) => {
27
+ onSetChannel(channel);
28
+ }}
29
+ channel={channel}
30
+ meta={meta}
31
+ onSetMeta={(meta) => onSetMeta(meta)}
32
+ /> */}
28
33
  </Form.Item>}
29
34
  </Form>);
30
35
  }
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import { Form, InputNumber, Alert } from 'antd';
3
- import ChannelPicker from '../../pay/channelPicker';
4
3
  import { ToYuan } from 'oak-domain/lib/utils/money';
5
4
  import Styles from './web.pc.module.less';
6
5
  export default function Render(props) {
@@ -17,9 +16,15 @@ export default function Render(props) {
17
16
  {price > 0 ? <Form.Item label={<span style={{ marginTop: 10 }}>
18
17
  {t('label.channel')}:
19
18
  </span>}>
20
- <ChannelPicker payConfig={payConfig} onPick={(channel) => {
21
- onSetChannel(channel);
22
- }} channel={channel} meta={meta} onSetMeta={(meta) => onSetMeta(meta)}/>
19
+ {/* <ChannelPicker
20
+ payConfig={payConfig}
21
+ onPick={(channel) => {
22
+ onSetChannel(channel);
23
+ }}
24
+ channel={channel}
25
+ meta={meta}
26
+ onSetMeta={(meta) => onSetMeta(meta)}
27
+ /> */}
23
28
  </Form.Item> : <div style={{ height: 120 }}/>}
24
29
  </Form>);
25
30
  }
@@ -1,7 +1,10 @@
1
1
  declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "account", false, {
2
2
  depositMinCent: number;
3
3
  depositMaxCent: number;
4
- onDepositPayId: (payId: string) => void;
4
+ onGoToUnfinishedPay: (payId: string) => void;
5
5
  onWithdraw: () => void;
6
+ textColor: string;
7
+ priceColor: string;
8
+ bgColor: string;
6
9
  }>) => React.ReactElement;
7
10
  export default _default;