|
|
|
@@ -15,11 +15,12 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
/** |
|
|
|
* Stormeye Wu |
|
|
|
*/ |
|
|
|
@Controller |
|
|
|
@RestController |
|
|
|
@RequestMapping("/weappCode") |
|
|
|
@Api(description = "微信第三方开发平台-小程序模板管理") |
|
|
|
public class WechatWeappCodeController { |
|
|
|
@@ -34,7 +35,7 @@ public class WechatWeappCodeController { |
|
|
|
WxOpenMaService openMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(extInfo.getExtAppid()); |
|
|
|
WxOpenResult openRet = openMaService.codeCommit(templateId, userVersion, userDesc, extInfo); |
|
|
|
logger.info(openRet.toString()); |
|
|
|
return new ResultData() ; |
|
|
|
return new ResultData(openRet); |
|
|
|
} catch (WxErrorException e) { |
|
|
|
logger.error(e.getMessage()); |
|
|
|
} |
|
|
|
|