WechatController.php 512 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace App\Http\Controllers;
  3. use App\Http\Logic\WechatLogic;
  4. class WechatController extends BaseController
  5. {
  6. /**
  7. * 校验微信服务器
  8. */
  9. public function checkServer($code)
  10. {
  11. $data = WechatLogic::checkServerlogic($code);
  12. return $data;
  13. }
  14. /**
  15. * 设置公众号菜单
  16. * @return \Illuminate\Http\JsonResponse
  17. */
  18. public function setMenu()
  19. {
  20. $data = WechatLogic::setMenuLogic();
  21. return $this->success($data);
  22. }
  23. }