Mini.php 856 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | A3Mall
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: xzncit <158373108@qq.com>
  8. // +----------------------------------------------------------------------
  9. namespace app\api\controller\wechat;
  10. use app\api\controller\Base;
  11. use app\api\service\wechat\Mini as MiniService;
  12. class Mini extends Base {
  13. /**
  14. * 消息模板
  15. * @return \think\response\Json
  16. */
  17. public function template(){
  18. try{
  19. return $this->returnAjax("ok",1,MiniService::getTemplate());
  20. }catch (\Exception $ex){
  21. return $this->returnAjax("ok",1);
  22. }
  23. }
  24. }