ViplexCore

ViplexCore SDK


获取升级描述文件内容

<p><strong>简要描述:</strong> </p> <ul> <li>获取压缩包中的升级文件描述信息</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>void nvReadFileContentFromZipFileAsync(const string &amp;data, ExportViplexCallback callback)</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li> </li> </ul> <p><strong>Header:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">Header名</th> <th style="text-align: left;">是否必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">必选</td> <td style="text-align: left;">string</td> <td>请求的JSON参数,参数示例和字段描述详见<code>请求参数示例</code>和<code>参数</code></td> </tr> <tr> <td style="text-align: left;">callback</td> <td style="text-align: left;">必选</td> <td style="text-align: left;">ExportViplexCallback</td> <td>接收返回值的回调函数</td> </tr> </tbody> </table> <p><strong>请求参数示例</strong></p> <pre><code>"{"zipFilePaths":["/sdcard/Android/data/UPDATE_OS_TAURUSV010501CN0301.nuzip"], "dFileNames":["package_description.json"]}"</code></pre> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">是否必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">zipFilePaths</td> <td style="text-align: left;">必选</td> <td style="text-align: left;">压缩包的路径</td> <td>*</td> </tr> <tr> <td style="text-align: left;">dFileNames</td> <td style="text-align: left;">必选</td> <td style="text-align: left;">json的文件名,与压缩包路径一一对应</td> <td>*</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>"{"error_code": 0,"data": {"zipFileContents":["{"commonSupportedProducts": ["T1", "T2", "T3", "T4", "T6", "T8", "T1-4G", "T2-4G", "TC300"], "description": "fgfgg", "totalSize": 34537490, "excutionType": "UPDATE", "version": "2.0.0.0602", "createdDate": "2020-03-13T11:32:51Z 08:00", "packetType": "BUNDLE", "packages": [{"version": "2.0.0.0602", "supportedPlatforms": ["rk3368", "rk312x"], "name": "Daemon-Terminal-release_2.0.0.0601-signed-aligned.apk", "supportedProducts": ["T1", "T2", "T3", "T4", "T6", "T8", "T1-4G", "T2-4G", "TC300"], "identifier": "RGFlbW9uLVRlcm1pbmFsLXJlbGVhc2VfMi4wLjAuMDYwMS1zaWduZWQtYWxpZ25lZC5hcGs=", "type": "APP", "startupAfterInstalled": "true", "size": 6674478}, {"version": "2.0.0.0602", "supportedPlatforms": ["rk3368", "rk312x"], "name": "Router-Terminal-release_2.0.0.0601-signed-aligned.apk", "supportedProducts": ["T1", "T2", "T3", "T4", "T6", "T8", "T1-4G", "T2-4G", "TC300"], "identifier": "Um91dGVyLVRlcm1pbmFsLXJlbGVhc2VfMi4wLjAuMDYwMS1zaWduZWQtYWxpZ25lZC5hcGs=", "type": "APP", "startupAfterInstalled": "true", "size": 6442643}, {"version": "2.0.0.0602", "supportedPlatforms": ["rk3368", "rk312x"], "name": "ScreenService-Terminal-release_2.0.0.0601-signed-aligned.apk", "supportedProducts": ["T1", "T2", "T3", "T4", "T6", "T8", "T1-4G", "T2-4G", "TC300"], "identifier": "U2NyZWVuU2VydmljZS1UZXJtaW5hbC1yZWxlYXNlXzIuMC4wLjA2MDEtc2lnbmVkLWFsaWduZWQuYXBr", "type": "APP", "startupAfterInstalled": "true", "size": 18543383}, {"version": "2.0.0.11", "supportedPlatforms": ["rk312x"], "name": "FPGA_T1-4G_T2-4G_2.0.0.11.bit.bin", "supportedProducts": ["T1-4G", "T2-4G"], "identifier": "RlBHQV9UMS00R19UMi00R18yLjAuMC4xMS5iaXQuYmlu", "type": "FPGA", "startupAfterInstalled": "true", "size": 465883}, {"version": "2.0.0.13", "supportedPlatforms": ["rk3368"], "name": "FPGA_T1_T2_2.0.0.13.bit.bin", "supportedProducts": ["T1", "T2"], "identifier": "RlBHQV9UMV9UMl8yLjAuMC4xMy5iaXQuYmlu", "type": "FPGA", "startupAfterInstalled": "true", "size": 803425}, {"version": "2.0.0.11", "supportedPlatforms": ["rk3368"], "name": "FPGA_T3_JT100_2.0.0.11.bit.bin", "supportedProducts": ["T3", "JT100"], "identifier": "RlBHQV9UM19KVDEwMF8yLjAuMC4xMS5iaXQuYmlu", "type": "FPGA", "startupAfterInstalled": "true", "size": 803701}, {"version": "2.0.0.18", "supportedPlatforms": ["rk3368"], "name": "FPGA_T4_T6_T8_2.0.0.18.bit.bin", "supportedProducts": ["T4", "T6", "T8"], "identifier": "RlBHQV9UNF9UNl9UOF8yLjAuMC4xOC5iaXQuYmlu", "type": "FPGA", "startupAfterInstalled": "true", "size": 803977}]}"],"zipFilePaths":["data/data/com.example.myapp/app_flutter/log/UPDATE_APP_2.0.0.0602.nuzip"]}}"</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">code</td> <td style="text-align: left;">int</td> <td>错误码:0,</td> </tr> <tr> <td style="text-align: left;">zipFileContents</td> <td style="text-align: left;">json的内容</td> <td>*</td> </tr> <tr> <td style="text-align: left;">zipFilePaths</td> <td style="text-align: left;">文件路径</td> <td>*</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li><code>code int 错误码:0 获取成功; 65314, 文件路径错误; 65315, 压缩包解压失败; 65316, json文件内容为空</code> result string 返回信息,返回值示例和字段描述详见<strong>返回示例</strong>和<strong>返回参数说明</strong></li> </ul>

页面列表

ITEM_HTML