@sandload/signlib
v1.0.13
Published
非码签名库
Downloads
9
Readme
非码前端签名库
限制仅允许在
.sandload.cn
,.sandload.com
,.subway.com.cn
,localhost
,127.0.0.1
下使用, 其他场景无返回
- 万象(version 1.x.x 及以上适用)
import { wanxiang } from "@sandload/signlib";
const env = ""; // 可选值 dev、qa、pre、prod
const fmSign = wanxiang(env);
const sign1 = fmSign.genTestSign("abcdefg");
const sign2 = fmSign.genSign(axiosConfig);
- 万象(旧版本 version 0.x.x 适用)
import wanxiang from "@sandload/signlib/wanxiang";
const env = ""; // 可选值 dev、qa、pre、prod
const fmSign = wanxiang(env);
const sign1 = fmSign.genTestSign("abcdefg");
const sign2 = fmSign.genSign(axiosConfig);
- 取餐屏
import { qcp } from "@sandload/signlib";
qcp.genSign({
partnerId: "",
deviceId: "",
body: {
name: "test",
},
});
或者直接页面 script 引入dist/qcp.sign.umd.js
文件,然后调用FmSign.qcp.genSign({ })
,效果一样。