|
@@ -10,6 +10,8 @@ import com.mokamrp.privates.entity.pangu.LoginStationHandle;
|
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
import com.mokamrp.privates.help.AjaxResult;
|
|
|
import com.mokamrp.privates.interceptor.AuthUser;
|
|
import com.mokamrp.privates.interceptor.AuthUser;
|
|
|
import com.mokamrp.privates.mapper.pojo.User;
|
|
import com.mokamrp.privates.mapper.pojo.User;
|
|
|
|
|
+import com.mokamrp.privates.service.CoralApiService;
|
|
|
|
|
+import com.mokamrp.privates.service.WechatApiService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.BindingResult;
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -36,6 +38,12 @@ public class FosterwxStationController extends BaseController<FosterwxStation> {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
public FosterwxStationService fosterwxStationService;
|
|
public FosterwxStationService fosterwxStationService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ public CoralApiService coralApiService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ public WechatApiService wechatApiService;
|
|
|
|
|
+
|
|
|
/*
|
|
/*
|
|
|
* @fast
|
|
* @fast
|
|
|
* 默认生成的控制器所继承的父类中有index/add/edit/del四个基础方法,均为post json请求
|
|
* 默认生成的控制器所继承的父类中有index/add/edit/del四个基础方法,均为post json请求
|
|
@@ -94,5 +102,12 @@ public class FosterwxStationController extends BaseController<FosterwxStation> {
|
|
|
return AjaxResult.success(res.get("msg").toString(),res);
|
|
return AjaxResult.success(res.get("msg").toString(),res);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @GetMapping("/test")
|
|
|
|
|
+ public Object test(){
|
|
|
|
|
+ String res = coralApiService.getBoxToken("gh_e529abe24cce");
|
|
|
|
|
+ String qrcodeUrl = wechatApiService.BuildBoxUnlimited(res,"asd=123","pages/index/index");
|
|
|
|
|
+ return AjaxResult.success(qrcodeUrl);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|