23 lines
531 B
JavaScript
23 lines
531 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getAppTypeFromProductType = getAppTypeFromProductType;
|
|
function getAppTypeFromProductType(type) {
|
|
switch (type) {
|
|
case 'app': {
|
|
return ['native'];
|
|
}
|
|
case 'h5': {
|
|
return ['web'];
|
|
}
|
|
case 'jsapi': {
|
|
return ['wechatPublic'];
|
|
}
|
|
case 'mp': {
|
|
return ['wechatMp'];
|
|
}
|
|
case 'native': {
|
|
return ['web'];
|
|
}
|
|
}
|
|
}
|