Oem.Class.php 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: kang
  5. * Date: 2021/3/15
  6. * Time: 14:05
  7. */
  8. namespace JinDouYun\Controller\Oem;
  9. use Mall\Framework\Core\ErrorCode;
  10. use Mall\Framework\Core\StatusCode;
  11. use JinDouYun\Controller\BaseController;
  12. use JinDouYun\Model\Oem\MOem;
  13. class Oem extends BaseController
  14. {
  15. private $objMOem;
  16. public function __construct($isCheckAcl = true, $isMustLogin = true)
  17. {
  18. parent::__construct($isCheckAcl, $isMustLogin);
  19. $this->objMOem = new MOem($this->onlineEnterpriseId, $this->onlineUserId);
  20. }
  21. /**
  22. * 获取指定logo贴标
  23. */
  24. public function getOemInfo()
  25. {
  26. $oemId = $this->request->param('request_id');
  27. if ( !$oemId ) {
  28. $this->sendOutput('参数错误', ErrorCode::$paramError );
  29. }
  30. $result = $this->objMOem->getOemInfo($oemId);
  31. if($result->isSuccess()){
  32. $this->sendOutput($result->getData());
  33. }else{
  34. $this->sendOutput($result->getData(), $result->getErrorCode());
  35. }
  36. }
  37. }