Commit c732c14f authored by maggie's avatar maggie

异步编译支持

parent b72bba52
......@@ -89,7 +89,7 @@ import { {%for service, service_item in type_item %}{{type|capitalize}}{{service
{# 生成函数体 #}
{% macro genMain(mains) %}
{%- for main in mains %}
const {{main.type}}{{main.service|capitalize}}{{main.function|firstToCapital}}Result{{loop.index}} = await {{main.type}}{{main.service | capitalize}}Service.{{main.function}}(
const {{main.type}}{{main.service|capitalize}}{{main.function|firstToCapital}}Result{{loop.index}} = {% if main.async %}{% else %}await {% endif %}{{main.type}}{{main.service | capitalize}}Service.{{main.function}}(
{%- for param in main.params -%}
{% if param.type == 'var' %}{{param.value}}{% else %}'{{param.value}}'{% endif %}{% if loop.last %}{% else %}, {% endif %}
{%- endfor -%}
......
......@@ -115,7 +115,7 @@ export const JOIN_NEED_TIMES = 1
export const appId = '1234'
// 商铺id 拼接vip链接用
export const sellerId = '${商铺id}'
export const sellerId = '1234'
// C端的APP NAME
export const C_APP_NAME: string = `promotioncenter-${appId}`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment