﻿## 1 无网眼镜
无网眼镜指的是眼镜在支付过程中不直连因特网、而是通过手机中转网络请求的眼镜。无网眼镜因眼镜端无法直接发起 **HTTP** 和 **WebSocket** 等网络请求，需要通过连接手机蓝牙，通过**蓝牙通道**做数据交换，真实的网络请求在手机端发起。

### 1.1 产品方案介绍
 「看一下支付」，是面向下一代个人智能设备的支付方式，看一下、说一声就能完成支付，解放双手高效更便捷。

未来也会结合支付宝的底层数据和核身能力，为眼镜厂商提供更多的支付宝端内服务，丰富AI眼镜的智能生态。

#### 1.1.1 交互流程介绍
![](https://intranetproxy.alipay.com/skylark/lark/0/2026/png/11743/1791774176102-d8805586-d097-4a7d-af50-c05e871a7475.png)

![](https://intranetproxy.alipay.com/skylark/lark/0/2026/png/11743/1791774215955-edb55297-87f6-4fb9-8184-9d66988995ba.png)



#### 1.1.2 厂商关键词配置
| **场景** | **厂商唤醒关键词** | **示例** |
| --- | --- | --- |
| 缴话费 | <font style="color:rgb(15, 17, 21);">交话费、充话费、缴话费、手机充值、电话充值</font><br/><font style="color:#000000;">金额结合型（用户意图明确）</font><br/>+ <font style="color:#000000;">【动词】+【话费/元】：充50话费、交100元、充200块话费</font> | 帮我充值、帮我交话费、帮我手机充值50元、<br/>帮我交50元话费、我要充50元话费 |
| 停车缴费 | XX 停车缴费、XX停车费、<br/>给【XX车牌号】交下停车费、停车费怎么交？ | 乐奇，停车缴费、帮我停车缴费、启动停车缴费<br/>小爱同学，停车缴费、给我交停车费<br/>交一下停车费、付停车费、给这辆车交下停车费<br/>浙A28372交停车费 |
| 点咖啡 | 点一杯、来一杯、我要点、点杯、来杯 **+** 咖啡名（奥瑞白、杨枝甘露、鲜萃、美式、拿铁、咖啡）/瑞幸<br/>新增：推荐一杯好喝的、推荐一杯、推荐新品 | 帮我点杯咖啡、帮我点一杯瑞幸咖啡、点一杯瑞幸咖啡、来一杯瑞幸咖啡、来一杯咖啡、我要点咖啡、点杯咖啡、请帮我点⼀杯柠C美式、来一杯 XXXX 咖啡、点一杯XXXX咖啡、<font style="color:rgb(23, 26, 29);">来杯精萃澳瑞白、点一杯生椰杨枝甘露、</font><font style="color:rgb(23, 26, 29);">点杯鲜萃轻轻茉莉</font> |
| 看一下支付 | 扫码支付、扫码支付XX元<br/>支付XX元、支付宝支付<br/>看一下支付、看一下支付XX元、<br/>帮我支付、帮我支付XX元、<br/>句式：XX  +支付、支付+xx元 | 扫码支付、扫码支付10元、支付10元、<br/>看一下支付10元、我要支付、我要支付10元 |
| 看一下货柜 | 1、扫码、扫二维码、扫描、扫条形码+ 开门、开柜、取货、开启<br/>2、货柜、支付宝+开门、开柜、取货、开启 | 扫码开门、支付宝开门、货柜开门<br/> |




### 1.2 支付宝输出产物
| **平台** | **产物** | **功能与说明** |
| --- | --- | --- |
| Android | 眼镜端支付宝Apk | 支付宝主要业务和逻辑处理 |
| | 眼镜端glassAPI | 借助眼镜Rom一些能力   1、借助厂商蓝牙通道做数据传输<br/>2、借助厂商媒体播放TTS |
| | 手机端SDk | 1、发起网络数据交互，HTTP和wss等协议<br/>2、借助厂商蓝牙通道与眼镜端做数据传输 |
| iOS | 手机端SDk | 同Android手机端SDK |


### 1.3 系统框图
![画板](https://intranetproxy.alipay.com/skylark/lark/0/2026/jpeg/29588/1769150863988-2064505f-b1e0-4a19-a645-8d87eb51c495.jpeg)

## 2 对接细则
### 2.1、眼镜APK
**<u><font style="color:#DF2A3F;">厂商接入，不可重签名</font></u>**

安装到眼镜端，主要处理支付宝业务逻辑和发起支付

需要Android敏感权限，**<u>需要厂商默认授予</u>**

```xml
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
```

| **<font style="color:rgb(0, 0, 0);">权限</font>** | **<font style="color:rgb(0, 0, 0);">描述</font>** | **<font style="color:rgb(0, 0, 0);">调用方</font>** | **<font style="color:rgb(0, 0, 0);">备注</font>** |
| :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">FOREGROUND_SERVICE、POST_NOTIFICATIONS</font> | <font style="color:rgb(0, 0, 0);">应用运行前台服务，防止被杀，并通知用户</font> | <font style="color:rgb(0, 0, 0);">眼镜端</font> | <font style="color:rgb(0, 0, 0);">眼镜端glassApp使用，手机端无</font> |
| <font style="color:rgb(0, 0, 0);">READ_PRIVILEGED_PHONE_STATE， READ_PHONE_STATE</font> | <font style="color:rgb(0, 0, 0);">访问手机状态信息</font> | <font style="color:rgb(0, 0, 0);">眼镜端</font> | <font style="color:rgb(0, 0, 0);">如获取deviceId</font> |
| <font style="color:rgb(0, 0, 0);">WRITE_SECURE_SETTINGS</font> | <font style="color:rgb(0, 0, 0);">写安全配置</font> | <font style="color:rgb(0, 0, 0);">眼镜端</font> | |
| <font style="color:rgb(0, 0, 0);">READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, MANAGE_EXTERNAL_STORAGE</font> | <font style="color:rgb(0, 0, 0);">读写sdcard权限</font> | <font style="color:rgb(0, 0, 0);">眼镜端、手机端</font> | |
| <font style="color:rgb(0, 0, 0);">CAMERA</font> | <font style="color:rgb(0, 0, 0);">访问相机权限，扫码使用</font> | <font style="color:rgb(0, 0, 0);">眼镜端</font> | |
| <font style="color:rgb(0, 0, 0);">ACCESS_NETWORK_STATE，ACCESS_WIFI_STATE</font> | <font style="color:rgb(0, 0, 0);">访问网络状态</font> | <font style="color:rgb(0, 0, 0);">手机端或有网眼镜</font> | |
| <font style="color:rgb(0, 0, 0);">QUERY_ALL_PACKAGES</font> | <font style="color:rgb(0, 0, 0);">查询包信息，配合query包名使用</font> | <font style="color:rgb(0, 0, 0);">眼镜端</font> | <font style="color:rgb(0, 0, 0);">眼镜端glassApp用</font> |
| <font style="color:rgb(0, 0, 0);">BLUETOOTH</font> | <font style="color:rgb(0, 0, 0);">扫描蓝牙设备</font> | <font style="color:rgb(0, 0, 0);">眼镜端</font> | |
| <font style="color:rgb(0, 0, 0);">ACCESS_THREAT_DETECTION</font> | <font style="color:rgb(64, 64, 64);">访问设备的威胁检测服务</font> | <font style="color:rgb(0, 0, 0);">眼镜端</font> | |
| <font style="color:rgb(0, 0, 0);">VIBRATE</font> | <font style="color:rgb(64, 64, 64);">控制设备的振动器</font> | <font style="color:rgb(0, 0, 0);">手机端</font> | |


### 2.2、眼镜端SDK
厂商系统集成眼镜端SDK，作为中间件串联手机端和眼镜Apk，主要用于眼镜系统侧与眼镜APK的AIDL通信，主要接口类：**<u>AlipayGlassV3Sdk</u>**

```java
AlipayGlassV3Sdk.getInstance(this).initSDK(extParams, new GlassSDKCallback() {
    @Override
    public void onStartRecording(String token) {
        //绑定阶段通知开启录音，需要在手机端回传音频数据到receiveDenoiseAudio
    }

    @Override
    public void onStopRecording() {
        //绑定阶段通知停止录音，停止后手机端不再回调
    }

    @Override
    public String onStartPlayback(String ttsData) {
        //播放支付过程提示文案(厂商可选眼镜端or手机端播放)
    }

    
    @Override
    public int sendDeviceLinkAsync(String data) {
        //眼镜发送数据-->手机,异步发送
        return 0;
    }

    @Override
    public boolean onWearDetection() {
        //佩戴检测
        return true;
    }

     @Override
    public void onErrorEvent(String code, String message) {
        //错误回调
        //Q9990("AlipayGlassSDKExit", "眼镜SDK已退出支付或绑定"),
        //其他错误码通知
    }
    
    public void onEvent(String code, String message, Map<String, Object> extInfo) {
        //Q9991("AlipayGlobalStateChange", "通知厂商SDK状态机变化"),
    }

    @Override
    public void onViIntentResult(String bizType, String dataJson, Map<String, Object> extInfo) {
        //意图回调（手机端处理）
    }
});
```

```java
AlipayGlassV3Sdk.getInstance(this).onGateDataReceived(message);
```

<font style="color:rgb(0, 0, 0);">初始化SDK，进程启动在眼镜App建立连接时调用，会将参数传递给眼镜初始化glassApp，支持重复调用；</font>

<font style="color:rgb(0, 0, 0);">入参：（入参key详见GlasspayConfig.java中定义）</font>

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | --- |
| <font style="color:rgb(0, 0, 0);">isvName</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">厂商名称</font> | <font style="color:rgb(0, 0, 0);">是</font> | |
| <font style="color:rgb(0, 0, 0);">deviceModel</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">设备机型</font> | <font style="color:rgb(0, 0, 0);">是</font> | $brand-$model 具体眼镜型号，要确保后续刷机不会变 |
| <font style="color:rgb(0, 0, 0);">deviceSN</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">设备SN</font> | <font style="color:rgb(0, 0, 0);">是</font> | 眼睛端sn，保证不变且唯一，关联支付账号 |
| <font style="color:rgb(0, 0, 0);">glassSupportNetwork</font> | <font style="color:rgb(0, 0, 0);">boolean</font> | <font style="color:rgb(0, 0, 0);">眼镜是否支持联网</font> | <font style="color:rgb(0, 0, 0);">是</font> | |
| <font style="color:rgb(0, 0, 0);">phoneSysType</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">用户手机型号</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">glassPayConfig</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">glassSDK的配置json</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">glassScreenType</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">眼镜的显示状态</font><br/><font style="color:rgb(0, 0, 0);">add -since 1.3.2</font> | <font style="color:rgb(0, 0, 0);">是</font> | <font style="color:rgb(0, 0, 0);">0 = 无显</font><br/><font style="color:rgb(0, 0, 0);">10 = 单绿 - 厂商渲染UI</font><br/><font style="color:rgb(0, 0, 0);">11 = 单绿 - 自渲染</font><br/><font style="color:rgb(0, 0, 0);">20 = 全彩</font> |


收到手机端消息回传给SDK

:::warning
支付过程中部分音频数据需要录制成音频，部分语音需要在线合成TTS，需要注意语音播报需要互斥，新的语音指令需要打断前序的播报，以避免在线TTS慢导致的语音排队问题

:::

#### **<font style="background-color:rgba(246, 225, 172, 0.5);">2.2.1 </font>****onErrorEvent****<font style="background-color:rgba(246, 225, 172, 0.5);">错误事件</font>**
+ Q9990 AlipayGlassSDKExit：特殊错误码，表示sdk退出绑定或支付；

#### 2.2.2 onEvent事件
##### **2.2.2.1 Q9991 AlipayGlobalStateChange对应的状态**
```plain
SDK_INIT,
SDK_BIND_BEGIN,//开始绑定
SDK_BIND_END,
SDK_SCAN_BEGIN,//开始扫码
SDK_SCANNING,
SDK_SCAN_END,//扫码结束
SDK_AMOUNT_CONFIRM,
SDK_AMOUNT_MODIFY,
SDK_PAY_BEGIN,//
SDK_PAY_END,
SDK_EXIT, //sdk退出，同Q9990含义
```

#### 2.2.3 数据清理（支付安全）
**<u><font style="color:#DF2A3F;">眼镜换绑手机或者账号后需要清理支付绑定数据</font></u>**

**<u><font style="color:#DF2A3F;">厂商侧需要调用 unbind 清理眼镜端绑定数据</font></u>**

### 2.3、手机端SDK-Android
主要接口类：**<u>AlipayGlassV2SDK</u>**

#### 2.3.1 初始化
```java

AlipayGlassV2Sdk.initSDK(context, extParams, new GlassSDKCallback() {

    @Override
    public void onStartRecording(String token) {
        //手机端无需处理
    }

    @Override
    public void onStopRecording() {
         //手机端无需处理
    }

    //播放TTS
    @Override
    public String onStartPlayback(String ttsData) {
         //播放支付过程提示文案(厂商可选眼镜端or手机端播放)
    }

    @Override
    @Deprecated
    public DeviceResponseData sendDeviceLink(DeviceRequireData data) {
         //手机发送数据-->眼镜,同步发送，已废弃，请使用 sendDeviceLinkAsync
    }

    //发送数据到蓝牙通道
    @Override
    public int sendDeviceLinkAsync(String data) {
        //手机发送数据-->眼镜,异步发送
    }

    @Override
    public boolean onWearDetection() {
       //手机端无需处理
    }

    @Override
    public void onErrorEvent(String code, String message) {
        // ● onErrorEvent：
        //   ○ Q1010/1011:sdk调用initCloudEnv失败，或者wss建联失败；收到此错误码仅需播音提示用户。
        //   ○ Q9990:glassSDK已释放退出
    }

    @Override
    public void onViIntentResult(String bizType, String dataJson, Map<String, Object> extInfo) {
        //返回意图和核身结果，厂商按需处理；比如将query显示到手机助手的聊天记录等
    }
});
```

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | --- |
| <font style="color:rgb(0, 0, 0);">isvName</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">厂商名称</font> | <font style="color:rgb(0, 0, 0);">是</font> |  |
| <font style="color:rgb(0, 0, 0);">deviceModel</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">设备机型</font> | <font style="color:rgb(0, 0, 0);">是</font> | $brand-$model 具体眼镜型号，要确保后续刷机不会变 |
| <font style="color:rgb(0, 0, 0);">deviceSN</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">设备SN</font> | <font style="color:rgb(0, 0, 0);">是</font> | 眼镜端sn号，保证唯一且不变 |
| <font style="color:rgb(0, 0, 0);">glassSupportNetwork</font> | <font style="color:rgb(0, 0, 0);">boolean</font> | <font style="color:rgb(0, 0, 0);">眼镜是否支持联网</font> | <font style="color:rgb(0, 0, 0);">是</font> | |
| <font style="color:rgb(0, 0, 0);">phoneSysType</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">用户手机型号</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">glassPayConfig</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">glassSDK的配置json</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">glassScreenType</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">眼镜的显示状态</font><br/><font style="color:rgb(0, 0, 0);">add -since 1.3.2</font> | <font style="color:rgb(0, 0, 0);">是</font> | <font style="color:rgb(0, 0, 0);">0 = 无显</font><br/><font style="color:rgb(0, 0, 0);">10 = 单绿 - 厂商渲染UI</font><br/><font style="color:rgb(0, 0, 0);">11 = 单绿 - 自渲染</font><br/><font style="color:rgb(0, 0, 0);">20 = 全彩</font> |


#### <font style="color:rgb(0, 0, 0);">2.3.2 getBindStatus</font>
```java
void getBindStatus(BindStatusCallBack bindStatusCallBack, boolean needCloudStatus) 
```

<font style="color:rgb(0, 0, 0);">获取眼镜的绑定状态；在手机端展示绑定状态 或者每次发起支付前调用；若未绑定，提示用户去厂商App中进行绑定；</font>

+ <font style="color:rgb(0, 0, 0);">needCloudStatus=true, 查询云端状态，一般填true;</font>
+ <font style="color:rgb(0, 0, 0);">needCloudStatus=false, 查询本地缓存状态；</font>

从GAlipayApp1.2.4版本开始，账号绑定、服务开通、核身录入独立解耦；厂商根据featureStatusList判断服务是否开通。

| **字段** | **类型** | **说明** | **示例** |
| --- | --- | --- | --- |
| isBinded | boolean | 账号绑定状态；（基本废弃，厂商根据featureStatusList判断服务是否开通） | true/false |
| extInfo | Map<String,Object> | 扩展信息 |  |
|  \|-featureStatusList | String | 服务开通状态,若已开通则同时返回对应的manageUrl。<br/> | featureStatusList":["{\"featureId\":\"CAR_PARKING\",\"status\":\"STATUS_BIND\"}","{\"featureId\":\"PAYMENT\",\"status\":\"STATUS_BIND\"}","{\"featureId\":\"QUICK_MODE\",\"status\":\"STATUS_UNBIND\"}","<br/>{\"featureId\":\"PAYMENT\",\"status\":\"STATUS_BIND\", \"manageUrl\":\"`http:xxx`\"}","{\"featureId\":\"PAY_DEMO\",\"status\":\"STATUS_BIND\"}"]}<br/>注：若服务从未开通过，则列表不展示 |
|   \|-verifyMethodStatus | 核身方法录入状态 | `VERIFY_VOICE:OPEN`，表示已录入<br/>`VERIFY_IRIS:CLOSE`， 已关闭 |  |




#### <font style="color:rgb(0, 0, 0);">2.3.3 startBinding</font>
```java
AlipayGlassV2Sdk.startBinding(map, new BindingCallBack() {
    @Override
    public void onGetBindingSchemeSuccess(String bindingScheme, String token) {
        //收到支付宝绑定页面，跳转scheme
    }

    @Override
    public void onBindingSuccess() {
        //绑定完成
    }

    @Override
    public void onBindingFailed(String errorCode) {
        //绑定失败
    }

    @Override
    @Deprecated
    public String getReturnUrl() {
        return "";//可忽略，在入参map中传入
    }

    @Override
    @Deprecated
    public Map<String, Object> onGetBindExtInfo(Map<String, Object> extInfo1, String extInfo2) {
        return Collections.emptyMap();
    }
});
```

<font style="color:rgb(0, 0, 0);">开始绑定，用户点击手机上的【开始绑定】按钮时调用；</font>

<font style="color:rgb(0, 0, 0);">入参：(详见GlasspayConfig.java中定义）</font>

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">returnUrl</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">绑定完成后的回跳地址</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">优先级高于callback中的getReturnUrl</font> |
| <font style="color:rgb(0, 0, 0);">sourceFrom</font> | <font style="color:rgb(0, 0, 0);">String</font> | 发起开通的服务名称来源 | <font style="color:rgb(0, 0, 0);">是</font> | ("PAYMENT", "支付")<br/><font style="color:rgb(0, 0, 0);">("CAR_PARKING", "停车缴费"),</font><br/><font style="color:rgb(0, 0, 0);">("CAR_PARKING_MESSAGE", "停车缴费消息"),</font><br/><font style="color:rgb(0, 0, 0);">("CITY_SIGHTSEEING", "城市导览"),</font><br/><font style="color:rgb(0, 0, 0);">("GLASSES_WUFU", "五福"),</font><br/><font style="color:rgb(0, 0, 0);">("GLASSES_HONGBAO", "口令红包"),</font><br/><font style="color:rgb(0, 0, 0);">("BICYCLE_SERVICE", "两轮车"),</font><br/><font style="color:rgb(0, 0, 0);">("AQ_SERVICE", "阿福健康管家"),</font><br/><font style="color:rgb(0, 0, 0);">("QUICK_MODE", "极速模式"),</font> |


~~**<font style="color:rgb(0, 0, 0);">onGetBindExtInfo extInfo1返回参数：</font>**~~

| ~~**<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>**~~ | ~~**<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>**~~ | ~~**<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>**~~ | ~~**<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">返回时机</font>**~~ | ~~**<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>**~~ |
| :--- | :--- | :--- | :--- | :--- |
| ~~<font style="color:rgb(0, 0, 0);">AlipayAppDownloadUrl</font>~~ | ~~<font style="color:rgb(0, 0, 0);">String</font>~~ | ~~<font style="color:rgb(0, 0, 0);">支付宝App下载地址</font>~~ | ~~<font style="color:rgb(0, 0, 0);">返回bindingschema时</font>~~ | ~~<font style="color:rgb(0, 0, 0);">绑定时，若用户手机未安装支付宝，则提示其下载安装</font>~~ |


#### <font style="color:rgb(0, 0, 0);">2.3.4 receiveDenoiseAudio</font>
```java
void receiveDenoiseAudio(byte[] audioData, String codeName, int sampleFormat, int sampleRate, int channelCount, Map<String, String> audioExt)
```

<font style="color:rgb(0, 0, 0);">接受降噪音频传入，格式要求：pcm，单声道，16000采样率，16位深(AV_SAMPLE_FMT_S16)；</font>

+ <font style="color:rgb(0, 0, 0);">绑定阶段：当进入支付宝小程序读文案界面时，会回调onStartRecording，此时打开麦克风，上传音频；</font>
+ <font style="color:rgb(0, 0, 0);">支付阶段：识别支付意图时，调用scanpay接口，同时将用户这句话也调用receiveDenoiseAudio传入；</font>

##### <font style="color:rgb(0, 0, 0);">唤起语上传</font>
<font style="color:rgb(0, 0, 0);">唤起语料厂商先做缓存，当识别到支付意愿调用scanpay接口时，同时把唤起语音进行上传,并在扩展字段中填写flowNode标识；调用示例：</font>

```java
//唤起语上传
audioExt.put("flowNode", "AROUSE");
receiveDenoiseAudio(data, "pcm", AlipayGlassSdk.AVSampleFormat.AV_SAMPLE_FMT_S16.getSampleType(), 16000, 1, audioExt);

//支付过程的流式音频上传
receiveDenoiseAudio(data, codeFmt, AlipayGlassSdk.AVSampleFormat.AV_SAMPLE_FMT_S16.getSampleType(), sampleRate, channelCnt, null)
```

:::warning
注意：唤起语音频上传要在scanpay之后才有效

:::

#### ~~2.3.5 unbind~~
```java
boolean unbind()
```

解绑支付宝账号，仅清除眼镜本地缓存uid tid信息； 

厂商手机App端解绑按钮建议跳转到支付宝小程序设备页面，进行解绑。跳转地址见**getCustomInfoV2**

#### 2.3.6 sendDeviceLinkAsync
通过蓝牙通道发送数据，异步发送。

#### 2.3.7 onGateDataReceived 
```java
String onGateDataReceived(String resData)

//example
String result = onGateDataReceived(data);
if (!TextUtils.isEmpty(result)) {
    sendDataByBluetooth(result);
}
```

蓝牙通道收到数据后回传给SDK即可；因眼镜端->手机端发送的消息多为同步消息，若onGateDataReceived **<u>有返回值且非空，需将返回值通过蓝牙发到眼镜端。</u>**

#### 2.3.8 scanpay
```java
void scanpay(Map<String, Object> params, IScanPayCallbck scanPayCallBack)
```

<font style="color:rgb(0, 0, 0);">调用开始扫码支付；当识别到用户支付意图时，调用前请先检查绑定状态。厂商侧调用 scanpay 同时需要开启回传音频,通过 receiveDenoise 回传，在收到支付结束回调 onErrorEvent(ErrorCode.Q9990) 时关闭音频回传，支付阶段SDK不会回调 startRecording 和 stopRecording。</font>

<font style="color:rgb(0, 0, 0);">入参：(详见GlasspayConfig.java中定义）</font>

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">USE_DEMO_MODE</font> | <font style="color:rgb(0, 0, 0);">bool</font> | <font style="color:rgb(0, 0, 0);">是否启用演示模式</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">仅对当笔看码付有效</font> |
| <font style="color:rgb(0, 0, 0);">disableTransparent</font> | <font style="color:rgb(0, 0, 0);">bool</font> | <font style="color:rgb(0, 0, 0);">是否打开扫码预览</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">PAY_INIT_ASR </font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">唤起语文本传入</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">sdk收到后放入initCloudEnv请求中,返回extInfo里面加个PAY_INIT_ASR_INTENTION; 设备通信用initIntentData</font> |


**V1.2.2新增字段：** key定义参考Constants.java

| <font style="color:rgb(0, 0, 0);"> tradeNo</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">如停车缴费订单号</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| --- | :--- | :--- | :--- | --- |
| <font style="color:rgb(0, 0, 0);">verifyId</font> | String | <font style="color:rgb(0, 0, 0);">如gpaasSDK前置核身id</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">amount</font> | <font style="color:rgb(0, 0, 0);">String</font> | 订单金额 | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">orderStr</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">外部订单号，需码路由</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">tradeStep2SdkState</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">推进阶段</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">值为</font>**AlipayGlobalStateChange**<font style="color:rgb(0, 0, 0);">中的字符串</font> |
| **<font style="color:rgb(0, 0, 0);">v1.2.3加入</font>** | <font style="color:rgb(0, 0, 0);"></font> | <font style="color:rgb(0, 0, 0);"></font> | <font style="color:rgb(0, 0, 0);"></font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">launchQuick</font> | <font style="color:rgb(0, 0, 0);">bool</font> | <font style="color:rgb(0, 0, 0);">是否快捷唤起（非语音唤起支付）</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">true：快捷键唤起</font> |
| <font style="color:rgb(0, 0, 0);">scene</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">场景码</font> | <font style="color:rgb(0, 0, 0);">否</font> | Payment,        //支付<br/>parkingPay,    //停车缴费<br/>bicycle,        //共享单车.... |
| <font style="color:rgb(0, 0, 0);">locationLat</font> | <font style="color:rgb(0, 0, 0);">纬度</font> | <font style="color:rgb(0, 0, 0);">地理位置</font> | <font style="color:rgb(0, 0, 0);">否（咖啡必填）</font> | 31.564343 |
| <font style="color:rgb(0, 0, 0);">locationLnt</font> | <font style="color:rgb(0, 0, 0);">经度</font> | <font style="color:rgb(0, 0, 0);">地理位置</font> | <font style="color:rgb(0, 0, 0);">否（咖啡必填）</font> | 120.533231 |
| <font style="color:rgb(0, 0, 0);">coordType</font> | <font style="color:rgb(0, 0, 0);">坐标系</font> | <font style="color:rgb(0, 0, 0);">经纬度对应坐标系</font> | <font style="color:rgb(0, 0, 0);">否（咖啡必填）</font> | 高德：GCJ-02<br/>百度：BD-09 |




#### <font style="color:rgb(0, 0, 0);">2.3.9 command</font>
```java
void command(final Map<String, Object> params)
```

<font style="color:rgb(0, 0, 0);">发送指令，比如用户点击眼镜的返回按键、摘下眼镜等时机调用；</font>

<font style="color:rgb(0, 0, 0);">入参：(详见GlasspayConfig.java中定义）</font>

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">commandCode</font> | <font style="color:rgb(0, 0, 0);">int</font> | <font style="color:rgb(0, 0, 0);">指令编码</font> | <font style="color:rgb(0, 0, 0);">是</font> | <font style="color:rgb(0, 0, 0);">0:表示退出</font><br/><font style="color:rgb(0, 0, 0);">1：表示按键命令</font> |
| <font style="color:rgb(0, 0, 0);">keyCode</font> | <font style="color:rgb(0, 0, 0);">int</font> | <font style="color:rgb(0, 0, 0);">具体按键值</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">source</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">命令来源</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">GlassAppDisconnect:眼镜端glassApp断开连接;</font><br/><font style="color:rgb(0, 0, 0);">其他退出reason;</font> |


<font style="color:rgb(0, 0, 0);"></font>



#### <font style="color:rgb(0, 0, 0);">2.3.10 getCustomInfoV2</font>
```java
void getCustomInfoV2(final Map<String, Object> params, CustomInfoCallback callback)
```

<font style="color:rgb(0, 0, 0);">获取客制化的自定义信息；</font>

入参：1)params:表示要获取信息的key, value按需填写;  2)customInfoCallback:返回指定keys的查询信息；

<font style="color:rgb(0, 0, 0);">出参：CustomInfoCallback的onCustomInfo中返回要查询的信息；</font>

<font style="color:rgb(0, 0, 0);">keys取值如下：</font>

| **<font style="background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="background-color:rgb(29, 192, 201);">参数Val</font>** | **<font style="background-color:rgb(29, 192, 201);">含义</font>** | **<font style="background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">AlipayAppDownloadUrl</font> | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">支付宝App下载地址</font> | <font style="color:rgb(0, 0, 0);">绑定时，若用户手机未安装支付宝，则提示其下载安装</font> |
| <font style="color:rgb(0, 0, 0);">AlipayManageGlassPage</font> | <font style="color:rgb(0, 0, 0);">填写对应来源,如</font><br/><font style="color:rgb(0, 0, 0);">sourceFrom=PAYMENT/CAR_PARKING....</font> | <font style="color:rgb(0, 0, 0);">支付宝App管理glass设备的小程序页面</font> | <font style="color:rgb(0, 0, 0);">解绑时跳转到支付宝小程序设备管理页面，若无支付宝则跳转到下载链接页面；参数Val详见2.3.2节列表</font> |
| <font style="color:rgb(0, 0, 0);">currentTradeUrl</font> | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">当前交易订单的url地址</font> | <font style="color:rgb(0, 0, 0);">可跳转到支付宝订单详情页</font> |
| currentAlipayUid | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">内部用，获取uid</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">glassDeviceSn</font> | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">内部用，获取眼镜sn</font> | <font style="color:rgb(0, 0, 0);"></font> |
| glassOnBinding | <font style="color:rgb(0, 0, 0);">true</font> | <font style="color:rgb(0, 0, 0);">眼镜是否在绑定中</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">glassOnPaying</font> | <font style="color:rgb(0, 0, 0);">false</font> | 眼镜是否在支付中 | <font style="color:rgb(0, 0, 0);"></font> |


```plain
String customKeys = new HashMap();
customKeys.put("AlipayAppDownloadUrl", "");
customKeys.put("AlipayManageGlassPage", "sourceFrom=CAR_PARKING");
AlipayGlassV2Sdk.getCustomInfoV2(customKeys, new CustomInfoCallback() {
    @Override
    public void onCustomInfo(String data, Map<String, Object> extInfo) {
        //data暂未使用； extInfo中为各个key对应的信息
    }
});
```



#### 2.3.11 setWearingState
```java
void setWearingState(boolean wearing) 
```

接口定义：public void setWearingState(boolean wearing)

入参：wearing=true表示眼镜戴上，false表示眼镜摘下；

功能描述：当眼镜佩戴状态发生变化时，通知眼镜sdk；

调用时机：当眼镜佩戴状态发生变化时调用；

#### 2.3.12 日志重定向
接口：setLogger

功能：用于将眼镜SDK的日志重定向到厂商日志中，便于后续客户端问题排查；Log等级跟随厂商设置，一般release包设置为Info，debug包设置为Verbose;

```json
public class AlipayLogger extends Logger {

    @Override
    public int verbose(String tag, String msg) {
        //重定向输出到厂商log文件
        return 0;
    }
  //。。。其他日志接口实现
}

com.alipay.glass.log.Log.setLogger(new AlipayLogger());
```



#### 2.3.13 startAlipayService
```java
String startAlipayService(final String appId, final String serviceCode, final Map<String,Object> params, final GAlipayCallback callback);

void stopAlipayService(final String appId, final String serviceCode, final Map<String,Object> params,
                                  final String sessionId, final GAlipayCallback callback)

```

<font style="color:rgb(0, 0, 0);">启动/停止支付宝服务，serviceCode为具体的服务编码；厂商侧调用 startAlipayService 同时需要开启回传音频,通过 receiveDenoise 回传，在收到支付结束回调 onErrorEvent(ErrorCode.Q9990) 时关闭音频回传，支付阶段SDK不会回调 startRecording 和 stopRecording。</font>

<font style="color:rgb(0, 0, 0);">params参数：(详见GlasspayConfig.java中定义）</font>

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">USE_DEMO_MODE</font> | <font style="color:rgb(0, 0, 0);">bool</font> | <font style="color:rgb(0, 0, 0);">是否启用演示模式</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">仅对当笔看码付有效</font> |
| <font style="color:rgb(0, 0, 0);">disableTransparent</font> | <font style="color:rgb(0, 0, 0);">bool</font> | <font style="color:rgb(0, 0, 0);">是否打开扫码预览</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">PAY_INIT_ASR</font><font style="color:rgb(0, 0, 0);"> </font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">唤起语文本传入</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">sdk收到后放入initCloudEnv请求中,返回extInfo里面加个PAY_INIT_ASR_INTENTION; 设备通信用initIntentData</font> |


V1.2.2新增字段：key定义参考Constants.java

| <font style="color:rgb(0, 0, 0);"> tradeNo</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">如停车缴费订单号</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">verifyId</font> | String | <font style="color:rgb(0, 0, 0);">如gpaasSDK前置核身id</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">amount</font> | <font style="color:rgb(0, 0, 0);">String</font> | 订单金额 | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">orderStr</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">外部订单号，需码路由</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">tradeStep2SdkState</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">当前推进阶段</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">值为</font>**AlipayGlobalStateChange**<font style="color:rgb(0, 0, 0);">中的枚举值的字符串</font> |




### 2.4、手机端SDK-iOS
![](https://intranetproxy.alipay.com/skylark/lark/0/2026/png/196456339/1773907528089-d78e3466-81e2-4cf4-a980-991922b183fb.png)

+ 把以上所有包引入iOS工程中，并在Target->buildSrttings->otherLinkerFlage中添加-ObjC
+ 需要在info中添加跳转支付宝的schemes白名单alipays
+ 如果是Swift项目则需要桥接文件，然后引入 **<u>AlipayGlassSDK.h文件</u>**
+ Resources.bundle为音频资源，支付过程中眼镜端无法播放提示音时可发送指令由手机端播放提示音，如不需要可不引入
+ ios_websocket_sdk.framework为动态库，其他为静态库
+ iOS端主要接口类：**<u>AlipayGlassSDK.h</u>**
+ iOS端权限相关：需要蓝牙和麦克风权限、用于数据交互和识别语音指令

#### 2.4.1、初始化
```plain
///需要实现的相关协议,详情请查看AlipayGlassSDK.h文件
///APGSDKSendToDeviceDelegate 设备通信回调
///BluetoothCenterDelegate 蓝牙代理
///BindStatusCallBack 绑定状态回调
///BindingCallBack 绑定回调
///IScanPayCallBack 支付相关回调
///CustomInfoCallback 客制化自定义参数接口回调
@interface ViewController () <APGSDKSendToDeviceDelegate, BluetoothCenterDelegate, BindStatusCallBack, BindingCallBack, IScanPayCallBack, CustomInfoCallback>

///初始化
[AlipayGlassSDK initSDK:@{
                            AlipayGlassInitKeyIsvName: @"", //眼镜设备的厂商名称
                            AlipayGlassInitKeySN: @"", //眼镜设备的sn
                            AlipayGlassInitKeyDeviceModel: @"", //眼镜设备类型
                            AlipayGlassInitKeySupportNetwork: @(NO), //是否可联网 
                            AlipayGlassInitKeyPhoneSysType: @"" //Android iOS等
                            AlipayGlassInitKeyAPGBlueSheildImageName: @"" //非必填，用于多bundleID场景，不同环境上传不同加密图片名称如nearx_bs_dev,nearx_bs_dis
                        }
               delegate:self];
```

**注** 入参说明同Android端。其中APGSDKSendToDeviceDelegate#onPrintLog务必实现，重定向SDK日志打印，用于排查问题；

#### <font style="color:rgb(0, 0, 0);">2.4.2 getBindStatus</font>
<font style="color:rgb(0, 0, 0);">获取眼镜的绑定状态；在手机端展示绑定状态 或者每次发起支付前调用；若未绑定，提示用户去厂商App中进行绑定；</font>**<u><font style="color:rgb(0, 0, 0);">featureList和具体详情请参考Android部分的说明。</font></u>**

+ <font style="color:rgb(0, 0, 0);">needCloudStatus=true, 查询云端状态，一般填true;</font>
+ <font style="color:rgb(0, 0, 0);">needCloudStatus=false, 查询本地缓存状态；</font>

```java
///获取绑定状态
[AlipayGlassSDK getBindStatus:self needCloudStatus:YES];
///同时获取设备自定义参数接口，参数下面getCustomInfo有说明
[AlipayGlassSDK getCustomInfo:@[AlipayGlassCustomInfoKeyAlipayAppDownloadUrl, AlipayGlassCustomInfoKeyAlipayManageGlassPage] callback:self];
///结果回调
- (void)onGetBindStatus:(BOOL)isBinded {
}
```

#### <font style="color:rgb(0, 0, 0);">2.4.3 startBinding</font>
```java
///蓝牙链接状态下发起绑定
[AlipayGlassSDK startBinding:@{AlipayGlassBindParamKeyReturnUrl:@""} callback:self];
///相关回调，拿到回调参数后跳转支付宝
- (void)onGetBindingSchemeSuccess:(NSString*)bindingScheme token:(NSString*)token {
}
///成功
- (void)onBindingSuccess {
}
///失败
- (void)onBindingFailed:(NSString *)errorCode {
}
///额外信息
- (NSDictionary<NSString *, id> *)onGetBindExtInfo:(NSDictionary<NSString *, id> *)extInfo1 extInfo2:(NSString *)extInfo2 {
    return @{};
}

```

<font style="color:rgb(0, 0, 0);">开始绑定，用户点击手机上的【开始绑定】按钮时调用；</font>

<font style="color:rgb(0, 0, 0);">入参：(详见GlasspayConfig.java中定义）</font>

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">returnUrl</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">绑定完成后的回跳地址</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">优先级高于callback中的getReturnUrl</font> |


**<font style="color:rgb(0, 0, 0);">onGetBindExtInfo extInfo1返回参数：</font>**

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">返回时机</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">AlipayAppDownloadUrl</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">支付宝App下载地址</font> | <font style="color:rgb(0, 0, 0);">返回bindingschema时</font> | <font style="color:rgb(0, 0, 0);">绑定时，若用户手机未安装支付宝，则提示其下载安装</font> |


#### <font style="color:rgb(0, 0, 0);">2.4.4 receiveDenoiseAudio</font>
<font style="color:rgb(0, 0, 0);">接受降噪音频传入，格式要求：pcm，单声道，16000采样率，16位深(AV_SAMPLE_FMT_S16)；</font>

+ <font style="color:rgb(0, 0, 0);">绑定阶段：当进入支付宝小程序读文案界面时，会回调onStartRecording，此时打开麦克风，上传音频；</font>
+ <font style="color:rgb(0, 0, 0);">支付阶段：识别支付意图时，调用scanpay接口，同时将用户这句话也调用receiveDenoiseAudio传入；</font>

##### <font style="color:rgb(0, 0, 0);">唤起语上传</font>
<font style="color:rgb(0, 0, 0);">唤起语料厂商先做缓存，当识别到支付意愿调用scanpay接口时，同时把唤起语音进行上传；在扩展字段中填写{"flowNode":"AROUSE"};</font>

```java
    [AlipayGlassSDK receiveDenoiseAudio:pcmData
                               codeName:@"pcm"
                           sampleFormat:APGAVSampleFormatS16
                             sampleRate:16000
                           channelCount:1
                               audioExt:@{}];
```

#### ~~2.4.5 unbind~~
解绑支付宝账号，仅清除眼镜本地缓存uid tid信息； 

厂商手机App端解绑按钮建议跳转到支付宝小程序设备页面，进行解绑。

#### 2.4.6 sendDeviceLinkAsync
通过蓝牙通道发送数据，异步发送。

#### 2.4.7 onGateDataReceived 
蓝牙通道收到数据后回传给SDK即可，若onGateDataReceived **<u>有返回值且非空，需将返回值通过蓝牙发到眼镜端。</u>**

#### 2.4.8 scanpay
<font style="color:rgb(0, 0, 0);">调用开始扫码支付；当识别到用户支付意图时，调用前请先检查绑定状态。厂商侧调用 scanpay 同时需要开启回传音频,通过 receiveDenoise 回传，在收到支付结束回调 onErrorEvent(ErrorCode.Q9990) 时关闭音频回传，支付阶段SDK不会回调 onStartRecording 和 stopRecording。</font>

<font style="color:rgb(0, 0, 0);">入参：(详见GlasspayConfig.java中定义），详细说明参考Android部分</font>

```java
[AlipayGlassSDK scanpay:@{AlipayGlassScanPayExtKeyPayInitASR:@"支付一元"} scanpayCallback:self];
///开启音频
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{    
    [self actionRecord:nil];
});
///相关回调
/**
 * 支付成功
 * @param scanResult 支付结果
 */
-(void)onScanSuccess:(APGScanResult *)scanResult {
}
/**
 * 扫码失败
 * @param errorCode 1001 扫码超时 、 1002 摄像头异常 、1003 网络异常 、 1004 系统繁忙 、 1005 用户取消 、 1006 暂不支持扫描的码
 */
-(void)onScanFailed:(int)errorCode {
}
/**
 * 扫码中间过程的回调
 * @param process 过程id
 * @param tips 文案描述
 */
-(void)onScanProcess:(int)process tips:(NSString *)tips {
}
/**
 * 支付接口回调
 * @param resultCode 9000 支付成功、 8000 支付结果未知，需要提示用户找商家确认、4000 支付失败
 * @param memo 支付结果提示文案
 */
-(void)onPayResult:(NSString *)resultCode memo:(NSString *)memo {
}


```

#### <font style="color:rgb(0, 0, 0);">2.4.9 command</font>
<font style="color:rgb(0, 0, 0);">发送指令，比如用户点击眼镜的返回按键、摘下眼镜等时机调用；</font>

<font style="color:rgb(0, 0, 0);">入参：(详见GlasspayConfig.java中定义）</font>

| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">类型</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">含义</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">是否必填</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">commandCode</font> | <font style="color:rgb(0, 0, 0);">int</font> | <font style="color:rgb(0, 0, 0);">指令编码</font> | <font style="color:rgb(0, 0, 0);">是</font> | <font style="color:rgb(0, 0, 0);">0:表示退出</font><br/><font style="color:rgb(0, 0, 0);">1：表示按键命令</font> |
| <font style="color:rgb(0, 0, 0);">keyCode</font> | <font style="color:rgb(0, 0, 0);">int</font> | <font style="color:rgb(0, 0, 0);">具体按键值</font> | <font style="color:rgb(0, 0, 0);">否</font> | |
| <font style="color:rgb(0, 0, 0);">source</font> | <font style="color:rgb(0, 0, 0);">String</font> | <font style="color:rgb(0, 0, 0);">命令来源</font> | <font style="color:rgb(0, 0, 0);">否</font> | <font style="color:rgb(0, 0, 0);">GlassAppDisconnect:眼镜端glassApp断开连接</font> |


#### <font style="color:rgb(0, 0, 0);">2.4.10 getCustomInfoV2</font>
void getCustomInfoV2( Map<String, Object> params, ICustomInfoCallback callback)

<font style="color:rgb(0, 0, 0);">获取客制化的自定义信息；</font>

入参：1)params:表示要获取信息的key, value按需填写;  2)customInfoCallback:返回指定keys的查询信息；

<font style="color:rgb(0, 0, 0);">出参：CustomInfoCallback的onCustomInfo中返回要查询的信息；</font>

<font style="color:rgb(0, 0, 0);">keys取值如下：</font>

| **<font style="background-color:rgb(29, 192, 201);">参数key</font>** | **<font style="background-color:rgb(29, 192, 201);">参数Val</font>** | **<font style="background-color:rgb(29, 192, 201);">含义</font>** | **<font style="background-color:rgb(29, 192, 201);">备注</font>** |
| :--- | :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">AlipayAppDownloadUrl</font> | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">支付宝App下载地址</font> | <font style="color:rgb(0, 0, 0);">绑定时，若用户手机未安装支付宝，则提示其下载安装</font> |
| <font style="color:rgb(0, 0, 0);">AlipayManageGlassPage</font> | <font style="color:rgb(0, 0, 0);">若从非看一下进入填写对应来源，如</font><br/><font style="color:rgb(0, 0, 0);">source=CAR_PARKING</font> | <font style="color:rgb(0, 0, 0);">支付宝App管理glass设备的小程序页面</font> | <font style="color:rgb(0, 0, 0);">解绑时跳转到支付宝小程序设备管理页面，若无支付宝则跳转到下载链接页面</font> |
| <font style="color:rgb(0, 0, 0);">currentTradeUrl</font> | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">当前交易订单的url地址</font> | <font style="color:rgb(0, 0, 0);">可跳转到支付宝订单详情页</font> |
| currentAlipayUid | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">内部用，获取uid</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">glassDeviceSn</font> | <font style="color:rgb(0, 0, 0);">""</font> | <font style="color:rgb(0, 0, 0);">内部用，获取眼镜sn</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">glassOnBinding</font> | <font style="color:rgb(0, 0, 0);"></font> | <font style="color:rgb(0, 0, 0);">眼镜是否在绑定中状态</font> | <font style="color:rgb(0, 0, 0);"></font> |
| <font style="color:rgb(0, 0, 0);">glassOnPaying</font> | <font style="color:rgb(0, 0, 0);"></font> | <font style="color:rgb(0, 0, 0);">眼镜是否在支付中状态</font> | <font style="color:rgb(0, 0, 0);"></font> |


```plain
///获取自定义信息
[AlipayGlassSDK getCustomInfo:@[AlipayGlassCustomInfoKeyAlipayAppDownloadUrl, AlipayGlassCustomInfoKeyAlipayManageGlassPage] callback:self];
///回调信息
- (void)onCustomInfo:(NSString *)data extInfo:(NSDictionary<NSString *,id> *)extInfo {   
}

```

#### 2.4.11 setWearingState
接口定义：setWearingState(boolean wearing)

入参：wearing=true表示眼镜戴上，false表示眼镜摘下；

功能描述：当眼镜佩戴状态发生变化时，通知眼镜sdk；

调用时机：当眼镜佩戴状态发生变化时调用；

#### 2.4.12 日志重定向onPrintLog
定义：APGSDKSendToDeviceDelegate代理方法(void)onPrintLog:(NSString*)log

功能：SDK内日志输出，对接中此方法一定要实现，便于排查问题

#### 2.4.13 startAlipayService
<font style="color:rgb(0, 0, 0);">启动/停止支付宝服务，serviceCode为具体的服务编码；厂商侧调用 startAlipayService 同时需要开启回传音频,通过 receiveDenoise 回传，在收到支付结束回调 onErrorEvent(ErrorCode.Q9990) 时关闭音频回传，支付阶段SDK不会回调 startRecording 和 stopRecording。</font>

<font style="color:rgb(0, 0, 0);">params参数：(详细说明参考Android部分GlasspayConfig.java中定义）</font>

```plain
/**
 * 启动服务，用于非扫码业务，参数同上
 * @param appId 预留参数
 * @param serviceCode 预留参数
 * @param params 同scanpay
 */
+ (void)startAlipayService:(NSString *)appId
               serviceCode:(NSString *)serviceCode
                    params:(NSDictionary<NSString *, id> * _Nullable )params
                  callback:(id<GAlipayCallback>)callback;


@protocol GAlipayCallback <NSObject>
/**
 *startAlipayService接口相关结果回调
 */
- (void)onResponse:(APGAlipayResponse *)response;

/**
 * 组件状态回调接口
 * @param eventId 跟组件注册的componentId保持一致
 * @param data 组件透传数据
 * @param extra 额外扩展字段
 */
- (void)onEvent:(NSString*)eventId data:(NSString*)data extra:(NSDictionary*)extra;

@end
```

### 2.5、交互流程
#### 2.5.1 绑定流程

```mermaid
sequenceDiagram
    autonumber
    participant ISVPhone as 厂商手机App
    participant ZFBApp as 手机支付宝App
    participant PhoneSDK as 手机眼镜SDK
    participant GlassApp as 眼镜支付Apk
    participant OPENAPI as 支付宝服务端

    activate ISVPhone

    ISVPhone->>PhoneSDK: InitSDK初始化眼镜SDK

    ISVPhone->>PhoneSDK: 查询绑定状态getBindStatus
    PhoneSDK->>GlassApp: getBindStatus
    GlassApp-->>PhoneSDK: onGetBindStatus返回绑定状态
    PhoneSDK-->>ISVPhone: 返回绑定状态

    alt 已绑定
        ISVPhone->>ISVPhone: 绑定结束
    else 未绑定
        ISVPhone->>PhoneSDK: 点击去绑定startBinding
        PhoneSDK->>GlassApp: 发送startBinding请求
        GlassApp->>GlassApp: initCloudEnv初始化<br/>startBindingProcess串联核身
        GlassApp-->>PhoneSDK: 返回绑定schema
        PhoneSDK-->>ISVPhone: onGetBindingSchemeSuccess返回schema
        ISVPhone->>ZFBApp: 打开绑定小程序
        ZFBApp->>ZFBApp: 用户绑定操作
        GlassApp->>GlassApp: 打开麦克风<br/>用户朗读文案
        GlassApp->>ISVPhone: 小核传输音频到手机端

        ISVPhone->>PhoneSDK: 降噪音频receiveDenoiseAudio
        PhoneSDK->>OPENAPI: wss上传音频

        loop 轮询绑定状态<br/>无网眼镜需手机转发
            GlassApp->>OPENAPI: 轮询绑定状态
            OPENAPI-->>GlassApp: 返回绑定状态
        end

        GlassApp-->>PhoneSDK: 返回绑定状态
        PhoneSDK-->>ISVPhone: onBindingSuccess/onBindingFailed<br/>返回绑定状态
    end

    ISVPhone->>PhoneSDK: releaseSDK
    deactivate ISVPhone
```

#### 2.5.2 支付流程

```mermaid
sequenceDiagram
    autonumber
    participant ISVPhone as 厂商手机App
    participant PhoneSDK as 手机眼镜SDK
    participant GlassApp as 眼镜支付Apk
    participant OPENAPI as 支付宝服务端

    activate ISVPhone

    ISVPhone->>PhoneSDK: InitSDK初始化眼镜SDK

    ISVPhone->>PhoneSDK: 识别到支付意图scanpay<br/>同时receiveDenoiseAudio上传唤起语
    PhoneSDK->>GlassApp: scanpay
    GlassApp->>GlassApp: 打开相机开始扫码
    GlassApp->>GlassApp: 扫到码值

    alt 带金额码值
        GlassApp->>GlassApp: 播音请确认支付
    else 无金额码值
        GlassApp->>GlassApp: 播音请输入金额
        ISVPhone->>PhoneSDK: 用户语音输入/修改金额
        PhoneSDK->>OPENAPI: wss上传音频
        OPENAPI-->>PhoneSDK: 返回金额意图
        PhoneSDK->>GlassApp: 金额意图
        GlassApp->>GlassApp: 播音即将支付xx元，请说确认支付
    end

    ISVPhone->>PhoneSDK: 用户语音确认支付
    PhoneSDK->>OPENAPI: wss上传音频
    OPENAPI-->>PhoneSDK: 返回确认意图
    PhoneSDK->>GlassApp: 确认意图
    GlassApp->>PhoneSDK: 确认支付rpc
    PhoneSDK-->>GlassApp: 确认支付结果<br/>播音支付成功/失败
    GlassApp-->>PhoneSDK: 返回支付结果
    PhoneSDK-->>ISVPhone: IScanPayCallBack返回结果
```



## 3 错误码
| **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">错误码</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">错误描述</font>** | **<font style="color:rgb(0, 0, 0);background-color:rgb(29, 192, 201);">解决方案</font>** |
| :--- | :--- | :--- |
| <font style="color:rgb(0, 0, 0);">1001</font> | <font style="color:rgb(0, 0, 0);">扫码超时</font> | <font style="color:rgb(0, 0, 0);">检查二维码是否破损并重试</font> |
| <font style="color:rgb(0, 0, 0);">1002</font> | <font style="color:rgb(0, 0, 0);">摄像头异常</font> | <font style="color:rgb(0, 0, 0);">重启设备，检查摄像头是否正常</font> |
| <font style="color:rgb(0, 0, 0);">1003</font> | <font style="color:rgb(0, 0, 0);">网络异常</font> | <font style="color:rgb(0, 0, 0);">检查网络是否正常</font> |
| <font style="color:rgb(0, 0, 0);">1004</font> | <font style="color:rgb(0, 0, 0);">系统繁忙</font> | <font style="color:rgb(0, 0, 0);">1、绑定失败重试超过100次；</font><br/><font style="color:rgb(0, 0, 0);">2、码路由信息解析异常</font> |
| <font style="color:rgb(0, 0, 0);">1005</font> | <font style="color:rgb(0, 0, 0);">用户取消扫码</font> | <font style="color:rgb(0, 0, 0);">用户主动关闭，无需处理</font> |
| <font style="color:rgb(0, 0, 0);">1006</font><font style="color:rgb(0, 0, 0);"> </font> | <font style="color:rgb(0, 0, 0);">暂不支持扫描的码</font> | <font style="color:rgb(0, 0, 0);">更换支持的支付宝收款码、经营码等</font> |
| <font style="color:rgb(0, 0, 0);">1007</font> | <font style="color:rgb(0, 0, 0);">手机端解绑</font> | <font style="color:rgb(0, 0, 0);">重新绑定设备</font> |
| <font style="color:rgb(0, 0, 0);">1011</font> | <font style="color:rgb(0, 0, 0);">重复发起支付</font> | <font style="color:rgb(0, 0, 0);">完成支付流程再发起支付</font> |
| <font style="color:rgb(0, 0, 0);">1012</font> | <font style="color:rgb(0, 0, 0);">未绑定支付宝账号</font> | <font style="color:rgb(0, 0, 0);">先绑定再发起支付</font> |
| <font style="color:rgb(0, 0, 0);">4000</font> | <font style="color:rgb(0, 0, 0);">1、系统繁忙，请稍后再试</font><br/><font style="color:rgb(0, 0, 0);">2、手机端解绑</font><br/><font style="color:rgb(0, 0, 0);">3、付款功能关闭</font><br/><font style="color:rgb(0, 0, 0);">4、支付超出限额</font> | <font style="color:rgb(0, 0, 0);">根据errorMessage具体处理</font> |
| <font style="color:rgb(0, 0, 0);">8000</font> | <font style="color:rgb(0, 0, 0);">支付结果未知，请与商家确认</font> | <font style="color:rgb(0, 0, 0);">联系商户确认支付结果</font> |
| <font style="color:rgb(0, 0, 0);">9000</font> | <font style="color:rgb(0, 0, 0);">支付成功</font> | <font style="color:rgb(0, 0, 0);">无需处理</font> |


```java
Q9990("AlipayGlassSDKExit", "眼镜SDK已退出，通知厂商侧语音助手退出技能，恢复到Idle状态等待下次唤醒"),
Q9991("AlipayGlobalStateChange", "通知厂商SDK状态机变化"),

//客户端本地错误码：
Q100001("扫码超时", "检查二维码是否破损并重试"),
Q100002("摄像头异常", "重启设备，检查摄像头是否正常"),
Q100003("网络异常", "检查网络是否正常"),
Q100004("系统繁忙", "绑定失败重试超过100次/码路由信息解析异常"),
Q100005("用户取消扫码", "用户主动关闭，无需处理"),
Q100006("无效二维码，请扫描支付宝收款码", "更换支持的支付宝收款码、经营码等"),
Q100007("还没绑定支付宝哦，去手机App完成绑定吧", "重新绑定设备"),
Q100008("扫码超时", "检查二维码是否破损并重试"),
Q100009("看蓝环超时", "请正对蓝环设备并重试"),
Q100010("网络或蓝牙连接异常，请使用手机支付宝付款", "网络或蓝牙连接异常，请使用手机支付宝付款"),
Q100011("网络或蓝牙连接异常", "网络或蓝牙连接异常"),
Q100012("支付APP已断开", "眼镜端glassApp已断开，手机端sdk进行释放重置，请稍后再重试"),
Q100023("摄像头异常", "重启设备，检查摄像头是否正常"),
Q100030("请勿重复发起支付", "重复发起支付"),
Q100031("流程超时", "超时退出"),

//服务端错误码：
Q100500("支付结果未知，请和商家确认", "通用错误提示"),
Q100501("支付结果未知，请和商家确认", "请求失败"),
Q100504("支付账号已解绑，请重新绑定", "通用错误提示"),
Q100507("支付结果未知，请和商家确认", "支付请求网络失败"),
Q100558("支付账号已解绑，请重新绑定", "PAY_RESULT_ALREADY_UNBIND"),
Q100559("请在手机端打开付款功能", "PAY_RESULT_PAYMENT_CLOSED"),
Q100560("支付超出限额，请用手机支付宝付款", "PAY_RESULT_EXCEED_LIMIT"),
Q100561("无效二维码，请扫描支付宝收款码", "PAY_RESULT_UNSUPPORT_CODE"),
Q100562("资金不足，支付失败", "PAY_RESULT_BALANCE_NOT_ENOUGH"),
Q100563("发现非本人操作，支付已终止。", "PAY_RESULT_VERIFY_FAIL"),
Q100564("请不要扫自己的码", "PAY_RESULT_UNSUPPORT_CODE"),
Q100565("没听清，请说确认支付", "PAY_RESULT_CODE_VERIFY_PENDING"),
Q100566("二维码无法识别", "通用错误提示"),

Q100600("需要语音确认，请说确认支付", "PAY_RESULT_QUICKMODE_FAIL"),
Q100599("支付结果未知，请和商家确认", "PAY_RESULT_FAIL"),
Q100598("支付结果未知，请和商家确认", "客户端代码异常"),
Q100597("支付结果未知，请和商家确认", "json解析异常"),
Q100596("支付结果未知，请和商家确认", "出了点问题，问问商家支付成功了吗"),
Q100595("已退出支付", "支付过程中如果双击退出则不在遍历结果"),
Q100594("订单交易失败，请在手机端支付", "PAY_RESULT_TRADE_FAIL--缴费、点咖啡等创单失败"),
Q100570("支付结果未知，请和商家确认", "等待码路由结果超时"),
Q100571("退出支付", "语音意图主动退出支付"),
Q100572("退出支付", "command退出支付"),
Q100573("输入金额超时", "输入金额超时"),
Q100574("确认支付超时", "确认支付超时"),
Q100575("修改额度失败", "修改额度失败"),
Q100576("支付超时", "支付超时"),    //场景操作超时
Q100577("无绑定手机号", "无绑定手机号")
```



## 4 接入前需要准备好的资源
:::warning
1. **需要收集厂商手机APP的应用签名md5和包名（iOS端<font style="color:rgba(0, 0, 0, 0.85);">BundleId和TeamIdentifier</font>），做签名校验**
    1. **Android拿到蓝盾图片nearx_bs.jpg后，放到对应的工程中的app主模块下的assets根目录下即可**
    2. **IOS需要放在mainBundle里，图片名称需要为nearx_bs.jpg**
    3. **Harmony将nearx_bs.jpg放到主工程entry/src/main/resources/base/media下**
2. **另需搜集眼镜端对接SDK的应用 包名和sha265，用于IPC调用安全校验**
![](https://intranetproxy.alipay.com/skylark/lark/0/2025/png/185656632/1756194675676-0b7350bd-6777-42cd-987b-5c6062f1ff57.png)
4. **支付宝网关侧对接入厂商需要配置appId，接入前需要做好配置，傲凌\莫程**
5. **搜集眼镜型号（brand和model），否则绑定阶段小程序无法跳转**

:::

**信息模板：**

| **类别** | **厂商提供值** | **含义** | **备注** |
| --- | --- | --- | --- |
| isvName | | 厂商名称 | |
| deviceModel | | 设备型号 | |
| 语音唤醒词 | | 语音助手唤醒词 | |
| 安卓apk包名 | | 应用包名 | |
| 安卓apk签名 | | 应用签名 | apksigner verify -verbose --print-certs <apk_path>,提供MD5值 |
| IOS包名 | | 应用包名 | IOS应用的Bundle Identifier‌ |
| 鸿蒙包名 | | 应用包名 | |

