You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.3 KiB
78 lines
1.3 KiB
8 months ago
|
<?php
|
||
|
/**
|
||
|
* 苏宁开放平台接口 -
|
||
|
*
|
||
|
* @author suning
|
||
|
* @date 2021-9-27
|
||
|
*/
|
||
|
class DecryptGetRequest extends SuningRequest{
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
*/
|
||
|
private $paramJson;
|
||
|
|
||
|
public function getParamJson() {
|
||
|
return $this->paramJson;
|
||
|
}
|
||
|
|
||
|
public function setParamJson($paramJson) {
|
||
|
$this->paramJson = $paramJson;
|
||
|
$arr = array();
|
||
|
foreach ($paramJson as $temp){
|
||
|
array_push($arr,$temp->getApiParams());
|
||
|
}
|
||
|
$this->apiParams["paramJson"] = $arr;
|
||
|
}
|
||
|
|
||
|
public function getApiMethodName(){
|
||
|
return 'suning.common.decrypt.get';
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
public function check(){
|
||
|
//非空校验
|
||
|
}
|
||
|
|
||
|
public function getBizName(){
|
||
|
return "getDecrypt";
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
class ParamJson {
|
||
|
|
||
|
private $apiParams = array();
|
||
|
|
||
|
private $authId;
|
||
|
|
||
|
private $cipherText;
|
||
|
|
||
|
public function getAuthId() {
|
||
|
return $this->authId;
|
||
|
}
|
||
|
|
||
|
public function setAuthId($authId) {
|
||
|
$this->authId = $authId;
|
||
|
$this->apiParams["authId"] = $authId;
|
||
|
}
|
||
|
|
||
|
public function getCipherText() {
|
||
|
return $this->cipherText;
|
||
|
}
|
||
|
|
||
|
public function setCipherText($cipherText) {
|
||
|
$this->cipherText = $cipherText;
|
||
|
$this->apiParams["cipherText"] = $cipherText;
|
||
|
}
|
||
|
|
||
|
public function getApiParams(){
|
||
|
return $this->apiParams;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|