MchApi.php 786 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace common\logic\middleground;
  3. use common\logic\middleground\base\ApiAbstract;
  4. class MchApi extends ApiAbstract
  5. {
  6. public $api_list = [
  7. 'register' => 'merchant/insideRegister',
  8. ];
  9. /**
  10. * 注册商户
  11. */
  12. public function register($data)
  13. {
  14. $param = [
  15. 'domain' => $data['domain'] ?? '',
  16. 'mall_id' => $data['mall_id'] ?? '',
  17. 'name' => $data['name'] ?? '',
  18. 'company' => $data['company'] ?? '',
  19. 'ip' => $data['ip'] ?? '',
  20. 'mobile' => $data['mobile'] ?? '',
  21. 'logo' => $data['logo'] ?? '',
  22. ];
  23. $res = $this->request($this->getFullUrl(__FUNCTION__), array_filter($param), 'post');
  24. return $res;
  25. }
  26. }