MCPcopy Create free account
hub / github.com/dcloudio/mui / getPayChannel

Function getPayChannel

examples/hello-mui/js/beecloud.js:57–76  ·  view source on GitHub ↗

* 获取支付通道 *

(bc_channel)

Source from the content-addressed store, hash-verified

55 *
56 */
57function getPayChannel(bc_channel) {
58 var dc_channel_id = '';
59 switch (bc_channel) {
60 case 'ALI_APP':
61 dc_channel_id = 'alipay';
62 break;
63 case 'WX_APP':
64 dc_channel_id = 'wxpay';
65 break;
66 default:
67 break;
68 }
69
70 for (var i in channels) {
71 if (channels[i].id == dc_channel_id) {
72 return channels[i];
73 }
74 }
75 return null;
76}
77
78function doPay(payData, cbsuccess, cberror) {
79 if (w) return;

Callers 1

doPayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected