| @@ 24-39 (lines=16) @@ | ||
| 21 | * |
|
| 22 | * @return array 客服信息. |
|
| 23 | */ |
|
| 24 | public function add($kf_account, $nickname, $password) |
|
| 25 | { |
|
| 26 | $kf_array = [ |
|
| 27 | 'kf_account' => $kf_account, |
|
| 28 | 'nickname' => $nickname, |
|
| 29 | 'password' => MD5($password), |
|
| 30 | ]; |
|
| 31 | ||
| 32 | $this->apitype = 'customservice'; |
|
| 33 | ||
| 34 | $this->module = 'kfaccount'; |
|
| 35 | ||
| 36 | $res = $this->_post('add', $kf_array); |
|
| 37 | ||
| 38 | return $res; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * 客服账号管理-修改客服账号. |
|
| @@ 54-69 (lines=16) @@ | ||
| 51 | * |
|
| 52 | * @return array 客服信息. |
|
| 53 | */ |
|
| 54 | public function update($kf_account, $nickname, $password) |
|
| 55 | { |
|
| 56 | $kf_array = [ |
|
| 57 | 'kf_account' => $kf_account, |
|
| 58 | 'nickname' => $nickname, |
|
| 59 | 'password' => MD5($password), |
|
| 60 | ]; |
|
| 61 | ||
| 62 | $this->apitype = 'customservice'; |
|
| 63 | ||
| 64 | $this->module = 'kfaccount'; |
|
| 65 | ||
| 66 | $res = $this->_post('update', $kf_array); |
|
| 67 | ||
| 68 | return $res; |
|
| 69 | } |
|
| 70 | ||
| 71 | /** |
|
| 72 | * 客服账号管理-删除客服账号. |
|