| 123456789101112131415161718192021 |
- <?php
- namespace app\services\ThirdParty\Taobao;
- use think\exception\ValidateException;
- class PrivateUserService extends TaobaoService
- {
- public function getInvitecodeSc($params)
- {
- $req = new \TbkScInvitecodeGetRequest();
- $this->batchSetProperties($req, $params);
- $req->setRelationApp('common');
- $req->setCodeType(3);
- $res = $this->execute($req);
- if (!$res) {
- throw new ValidateException('网络错误,请稍后重试');
- }
- return $res;
- }
- }
|