liusheng
2023-05-25 bed24ea3fdeee959b85b699a82d53c5112adb219
ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/WeChatController.java
@@ -13,10 +13,13 @@
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;
/**
@@ -27,13 +30,15 @@
 */
@RestController
@RequestMapping("/smartor/wechat")
@PropertySource(value = { "classpath:application-druid.yml" })
public class WeChatController extends BaseController {
    @Value("appid")
    private String appid = "wx1c5243d2337753f4";
    @Value("${appid}")
    private String appid;
    @Value("appSecret")
    private String appSecret = "84a2186a0d175e88345267c716516cd3";
    @Value("${appSecret}")
    private String appSecret;
    /**
     * 获取模板信息