Member::getShopShortLink()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Abbotton\DouDian\Api;
4
5
use Illuminate\Http\Client\RequestException;
6
use Psr\SimpleCache\InvalidArgumentException;
7
8
class Member extends BaseRequest
9
{
10
    /**
11
     * 会员等级更新.
12
     *
13
     * @param array $params
14
     *
15
     * @throws RequestException
16
     * @throws InvalidArgumentException
17
     *
18
     * @return array
19
     */
20
    public function batchUpdate(array $params): array
21
    {
22
        return $this->httpPost('member/batchUpdate', $params);
23
    }
24
25
    /**
26
     * 获取商家推广链接接口.
27
     *
28
     * @param array $params
29
     *
30
     * @throws RequestException
31
     * @throws InvalidArgumentException
32
     *
33
     * @return array
34
     */
35
    public function getShopShortLink(array $params): array
36
    {
37
        return $this->httpPost('member/getShopShortLink', $params);
38
    }
39
}
40