...
|
...
|
@@ -17,6 +17,7 @@ import com.yoho.error.exception.ServiceException; |
|
|
* Created by yoho on 2016/6/17.
|
|
|
*/
|
|
|
@Controller
|
|
|
@RequestMapping("/tencentMkt/TencentMktController")
|
|
|
public class TencentMktController {
|
|
|
|
|
|
static Logger log = LoggerFactory.getLogger(TencentMktController.class);
|
...
|
...
|
@@ -33,7 +34,7 @@ public class TencentMktController { |
|
|
* @return
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
@RequestMapping(params = "method=wap.activity.tencent.sendSms")
|
|
|
@RequestMapping("/sendSms")
|
|
|
@ResponseBody
|
|
|
public ApiResponse sendSms(String area, String mobile) throws ServiceException {
|
|
|
log.info("sendSms with area={}, mobile={}", area, mobile);
|
...
|
...
|
@@ -51,7 +52,7 @@ public class TencentMktController { |
|
|
* flag=4表示分享活动未开始,
|
|
|
* flag=1正常
|
|
|
*/
|
|
|
@RequestMapping(params = "method=wap.activity.tencent.getActivityInfo")
|
|
|
@RequestMapping("/getActivityInfo")
|
|
|
@ResponseBody
|
|
|
public ApiResponse getActivityInfo(String activityCode) {
|
|
|
log.info("getActivityInfo param activityCode={}", activityCode);
|
...
|
...
|
@@ -74,7 +75,7 @@ public class TencentMktController { |
|
|
* @return
|
|
|
* @throws ServiceException
|
|
|
*/
|
|
|
@RequestMapping(params = "method=wap.activity.tencent.validRegCodeAndSendCode")
|
|
|
@RequestMapping("/validRegCodeAndSendCode")
|
|
|
@ResponseBody
|
|
|
public ApiResponse validRegCodeAndSendCode(String code, String area, String mobile, String client_id) throws ServiceException {
|
|
|
log.info("validRegCodeAndSendCode with code={},area={}, mobile={},", code, area, mobile);
|
...
|
...
|
|