Apple.php 557 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace addons\shopro\controller\third;
  3. use addons\shopro\controller\Common;
  4. use addons\shopro\service\third\apple\Apple as AppleService;
  5. class Apple extends Common
  6. {
  7. protected $noNeedLogin = ['login'];
  8. // 苹果登陆(仅对接App登录)
  9. public function login()
  10. {
  11. $payload = $this->request->post('payload/a');
  12. $apple = new AppleService();
  13. $result = $apple->login($payload);
  14. if ($result) {
  15. $this->success('登陆成功');
  16. }
  17. $this->error('登陆失败');
  18. }
  19. }