Commit d2042549 authored by 陈宇雄's avatar 陈宇雄

doc: 优化文档

parent 3f58b7cb
......@@ -6,7 +6,7 @@
##### Version Release v1.0.2
##### 更新时间: 2025.07.30
##### 文档更新时间: 2025.07.30
#### 上海元芒数字科技有限公司
......@@ -55,11 +55,11 @@
1. 把WmCateringService_v1.0.2_sdk.jar放在工程libs目录下;
2. module的build.gradle中添加依赖:
```
Implementation files("libs/WmCateringService_v1.0.2_sdk.jar")
implementation files("libs/WmCateringService_v1.0.2_sdk.jar")
```
3. AndroidManifest.xml中增加权限:
```
<uses-permissionandroid:name="android.permission.QUERY_ALL_PACKAGES"/>
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
```
4. 若程序开启代码混淆,在防混淆文件中增加:
```
......@@ -125,7 +125,7 @@ public void unbindService();
- 请求用例
```java
WmSDK.getInstance().unbindService();
WmSdk.getInstance().unbindService();
```
## 3.3 init(初始化接口)
......@@ -195,7 +195,13 @@ ProductsDTO
log("准备导入测试用商品资料");
// 导入商品资料
List<ProductsDTO> list = new ArrayList<>();
list.add(new ProductsDTO("红烧肉", "1", "HSR", "25", 1));
list.add(new ProductsDTO(
/* productName */ "红烧肉",
/* productCode */ "1",
/* productMnemonicCode */ "HSR",
/* unitPrice */ "25",
/* onSale */ 1
));
WmSdk.getInstance().importProducts(list);
log("商品资料导入完成");
```
......
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