| 12345678910111213141516171819202122232425262728293031 |
- <?php
- namespace common\logic\middleground;
- use common\logic\middleground\base\ApiAbstract;
- class MchApi extends ApiAbstract
- {
- public $api_list = [
- 'register' => 'merchant/insideRegister',
- ];
- /**
- * 注册商户
- */
- public function register($data)
- {
- $param = [
- 'domain' => $data['domain'] ?? '',
- 'mall_id' => $data['mall_id'] ?? '',
- 'name' => $data['name'] ?? '',
- 'company' => $data['company'] ?? '',
- 'ip' => $data['ip'] ?? '',
- 'mobile' => $data['mobile'] ?? '',
- 'logo' => $data['logo'] ?? '',
- ];
- $res = $this->request($this->getFullUrl(__FUNCTION__), array_filter($param), 'post');
- return $res;
- }
- }
|