admin
2024-09-05 ab35ac8b769b2d9816dffb33a64f2c6f7bd5dd6e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.yeshi.buwan.util.api;
 
import com.yeshi.buwan.domain.system.DetailSystem;
import com.yeshi.buwan.service.imp.SystemService;
import com.yeshi.buwan.vo.AcceptData;
import org.springframework.stereotype.Component;
 
@Component
public class ClientApiUtil {
 
    private SystemService systemService;
 
    /**
     * 初始化基础参数
     *
     * @param acceptData
     */
    public void initBaseParams(AcceptData acceptData) {
        if (acceptData != null) {
            if ("ios".equalsIgnoreCase(acceptData.getPlatform())) {
                acceptData.setChannel("appstore");
            }
            //注入detailSystem
            DetailSystem detailSystem = systemService.getDetailSystemByPackage(acceptData.getPackageName());
            acceptData.setDetailSystem(detailSystem);
        }
 
    }
 
 
}