add clear
This commit is contained in:
@@ -50,6 +50,8 @@ class Account extends SmallProgram
|
||||
|
||||
$this->request->setMethod(HttpClient::GET);
|
||||
$this->request->addHeader('Content-Type', 'text/xml');
|
||||
$this->request->setErrorField('errcode');
|
||||
$this->request->setErrorMsgField('errmsg');
|
||||
|
||||
return $this->request->get('sns/jscode2session', $param);
|
||||
}
|
||||
@@ -69,6 +71,8 @@ class Account extends SmallProgram
|
||||
|
||||
$this->request->setMethod(HttpClient::GET);
|
||||
$this->request->setIsSSL(true);
|
||||
$this->request->setErrorField('errcode');
|
||||
$this->request->setErrorMsgField('errmsg');
|
||||
return $this->request->get($this->publicInfo, $query);
|
||||
}
|
||||
|
||||
@@ -114,6 +118,8 @@ class Account extends SmallProgram
|
||||
|
||||
$this->request->setMethod(HttpClient::POST);
|
||||
$this->request->setCallback([$this, 'saveByPath']);
|
||||
$this->request->setErrorField('errcode');
|
||||
$this->request->setErrorMsgField('errmsg');
|
||||
|
||||
return $this->request->post($url, $sendBody);
|
||||
}
|
||||
@@ -142,6 +148,8 @@ class Account extends SmallProgram
|
||||
|
||||
$this->request->setMethod(HttpClient::POST);
|
||||
$this->request->setCallback([$this, 'saveByPath']);
|
||||
$this->request->setErrorField('errcode');
|
||||
$this->request->setErrorMsgField('errmsg');
|
||||
return $this->request->post($url, $sendBody);
|
||||
}
|
||||
|
||||
@@ -169,6 +177,8 @@ class Account extends SmallProgram
|
||||
|
||||
$this->request->setMethod(HttpClient::POST);
|
||||
$this->request->setCallback([$this, 'saveByPath']);
|
||||
$this->request->setErrorField('errcode');
|
||||
$this->request->setErrorMsgField('errmsg');
|
||||
return $this->request->post($url, $sendBody);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user