BaseProduct.php 900 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * author: songtao<375177628@qq.com>
  4. * Date: 2020/09/21
  5. */
  6. namespace crmeb\basic;
  7. use crmeb\services\AccessTokenServeService;
  8. /**
  9. * Class BaseProduct
  10. * @package crmeb\basic
  11. */
  12. abstract class BaseProduct extends BaseStorage
  13. {
  14. /**
  15. * access_token
  16. * @var null
  17. */
  18. protected $accessToken = NULL;
  19. public function __construct(string $name, AccessTokenServeService $accessTokenServeService, string $configFile)
  20. {
  21. $this->accessToken = $accessTokenServeService;
  22. }
  23. /**
  24. * 初始化
  25. * @param array $config
  26. * @return mixed|void
  27. */
  28. protected function initialize(array $config = [])
  29. {
  30. // parent::initialize($config);
  31. }
  32. /**
  33. * 开通服务
  34. * @return mixed
  35. */
  36. abstract public function open();
  37. /**复制商品
  38. * @return mixed
  39. */
  40. abstract public function goods($url);
  41. }