Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
Android_Catering_service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜天宇
Android_Catering_service
Commits
d2042549
Commit
d2042549
authored
Jul 31, 2025
by
陈宇雄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc: 优化文档
parent
3f58b7cb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
元芒数字餐饮服务(WmCateringService)Android端接口说明文档.md
元芒数字餐饮服务(WmCateringService)Android端接口说明文档.md
+11
-5
No files found.
元芒数字餐饮服务(WmCateringService)Android端接口说明文档.md
View file @
d2042549
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
##### Version Release v1.0.2
##### Version Release v1.0.2
##### 更新时间: 2025.07.30
#####
文档
更新时间: 2025.07.30
#### 上海元芒数字科技有限公司
#### 上海元芒数字科技有限公司
...
@@ -55,11 +55,11 @@
...
@@ -55,11 +55,11 @@
1.
把WmCateringService_v1.0.2_sdk.jar放在工程libs目录下;
1.
把WmCateringService_v1.0.2_sdk.jar放在工程libs目录下;
2.
module的build.gradle中添加依赖:
2.
module的build.gradle中添加依赖:
```
```
I
mplementation files("libs/WmCateringService_v1.0.2_sdk.jar")
i
mplementation files("libs/WmCateringService_v1.0.2_sdk.jar")
```
```
3. AndroidManifest.xml中增加权限:
3. AndroidManifest.xml中增加权限:
```
```
<uses-permissionandroid:name="android.permission.QUERY_ALL_PACKAGES"/>
<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"/>
```
```
4. 若程序开启代码混淆,在防混淆文件中增加:
4. 若程序开启代码混淆,在防混淆文件中增加:
```
```
...
@@ -125,7 +125,7 @@ public void unbindService();
...
@@ -125,7 +125,7 @@ public void unbindService();
- 请求用例
- 请求用例
```
java
```
java
WmS
DK
.getInstance().unbindService();
WmS
dk
.getInstance().unbindService();
```
```
## 3.3 init(初始化接口)
## 3.3 init(初始化接口)
...
@@ -195,7 +195,13 @@ ProductsDTO
...
@@ -195,7 +195,13 @@ ProductsDTO
log("准备导入测试用商品资料");
log("准备导入测试用商品资料");
// 导入商品资料
// 导入商品资料
List
<ProductsDTO>
list = new ArrayList
<>
();
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);
WmSdk.getInstance().importProducts(list);
log("商品资料导入完成");
log("商品资料导入完成");
```
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment