|
@@ -268,6 +268,8 @@ class Base
|
|
|
$string .= $k . $v;
|
|
|
} elseif ($this->connect['sign_type'] == 4) {
|
|
|
$string .= $k . $v . '&';
|
|
|
+ } elseif ($this->connect['sign_type'] == 5) {
|
|
|
+ $string .= $k . '=' . $v;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -282,6 +284,32 @@ class Base
|
|
|
$sign .= $this->connect['sign_appsecret'] . $this->connect['appsecret'];
|
|
|
} elseif ($this->connect['sign_type'] == 4) {
|
|
|
$sign .= '&' . $this->connect['sign_appsecret'] . $this->connect['appsecret'];
|
|
|
+ } elseif ($this->connect['sign_type'] == 5) {
|
|
|
+ $sign .= $this->connect['sign_appsecret'] . $this->connect['appsecret'];
|
|
|
+ }
|
|
|
+ } elseif ($this->connect['sign_appsecret'] && $this->connect['sign_appsecret_location'] == 3) {
|
|
|
+ if ($this->connect['sign_type'] == 1) {
|
|
|
+ $sign = $this->connect['appsecret'] . $sign;
|
|
|
+ } elseif ($this->connect['sign_type'] == 2) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . '=' . $this->connect['appsecret'] . '&' . $sign;
|
|
|
+ } elseif ($this->connect['sign_type'] == 3) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . $this->connect['appsecret'] . $sign;
|
|
|
+ } elseif ($this->connect['sign_type'] == 4) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . $this->connect['appsecret'] . '&' . $sign;
|
|
|
+ } elseif ($this->connect['sign_type'] == 5) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . $this->connect['appsecret'] . $sign;
|
|
|
+ }
|
|
|
+ } elseif ($this->connect['sign_appsecret'] && $this->connect['sign_appsecret_location'] == 4) {
|
|
|
+ if ($this->connect['sign_type'] == 1) {
|
|
|
+ $sign = $this->connect['appsecret'] . $sign . $this->connect['appsecret'];
|
|
|
+ } elseif ($this->connect['sign_type'] == 2) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . '=' . $this->connect['appsecret'] . '&' . $sign . '&' . $this->connect['sign_appsecret'] . '=' . $this->connect['appsecret'];
|
|
|
+ } elseif ($this->connect['sign_type'] == 3) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . $this->connect['appsecret'] . $sign . $this->connect['sign_appsecret'] . $this->connect['appsecret'];
|
|
|
+ } elseif ($this->connect['sign_type'] == 4) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . $this->connect['appsecret'] . '&' . $sign . '&' . $this->connect['sign_appsecret'] . $this->connect['appsecret'];
|
|
|
+ } elseif ($this->connect['sign_type'] == 5) {
|
|
|
+ $sign = $this->connect['sign_appsecret'] . $this->connect['appsecret'] . $sign . $this->connect['sign_appsecret'] . $this->connect['appsecret'];
|
|
|
}
|
|
|
}
|
|
|
|