admin
2021-04-12 5129d2c63fbef70c6ee45ba5ec12654937e05231
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);
        }
 
    }
 
 
}