WechatController.php 477 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace App\Http\Controllers;
  3. use Illuminate\Http\Request;
  4. use App\Services\WechatService;
  5. class WechatController extends Controller
  6. {
  7. public function __construct(WechatService $wechatService)
  8. {
  9. $this->wechatService = $wechatService;
  10. }
  11. /**
  12. * 公众号分享
  13. */
  14. public function share(Request $request)
  15. {
  16. $res = $this->wechatService->share($request->all());
  17. return jsonSuccess(json_decode($res,true));
  18. }
  19. }