Skip to content

Commit 7e43a77

Browse files
committed
add remark which is setting openssl info
1 parent 4f906d4 commit 7e43a77

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

lib/jpush_api_php_client.php

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public function sendNotificationByTag($tag, $sendno, $send_description,
5353
$sendno, $send_description, $mes_title, $mes_content, $platform, $extras='',$override_msg_id='');
5454

5555
//发送通知 Or自定义消息
56-
$baseClent = new BaseClent();
56+
$baseClient = new BaseClient();
5757
//echo $sendVO->getParams();
58-
$return_str = $baseClent->send($sendVO);
58+
$return_str = $baseClient->send($sendVO);
5959

6060
return $return_str;
6161
}
@@ -84,8 +84,8 @@ public function sendCustomMesByTag($tag, $sendno, $send_description,
8484
$sendno, $send_description, $mes_title, $mes_content, $platform, $extras='',$override_msg_id='');
8585

8686
//发送通知 Or自定义消息
87-
$baseClent = new BaseClent();
88-
$return_str = $baseClent->send($sendVO);
87+
$baseClient = new BaseClient();
88+
$return_str = $baseClient->send($sendVO);
8989
return $return_str;
9090

9191
}
@@ -112,8 +112,8 @@ public function sendNotificationByAlias($alias, $sendno, $send_description,
112112
$sendno, $send_description, $mes_title, $mes_content, $platform, $extras='',$override_msg_id='');
113113

114114
//发送通知 Or自定义消息
115-
$baseClent = new BaseClent();
116-
$return_str = $baseClent->send($sendVO);
115+
$baseClient = new BaseClient();
116+
$return_str = $baseClient->send($sendVO);
117117
return $return_str;
118118

119119
}
@@ -140,8 +140,8 @@ public function sendCustomMesByAlias($alias, $sendno, $send_description,
140140
$sendno, $send_description, $mes_title, $mes_content, $platform, $extras='',$override_msg_id='');
141141

142142
//发送通知 Or自定义消息
143-
$baseClent = new BaseClent();
144-
$return_str = $baseClent->send($sendVO);
143+
$baseClient = new BaseClient();
144+
$return_str = $baseClient->send($sendVO);
145145
return $return_str;
146146

147147
}
@@ -167,8 +167,8 @@ public function sendNotificationByAppkey($sendno, $send_description,
167167
$sendno, $send_description, $mes_title, $mes_content, $platform, $extras='',$override_msg_id='');
168168

169169
//发送通知 Or自定义消息
170-
$baseClent = new BaseClent();
171-
$return_str = $baseClent->send($sendVO);
170+
$baseClient = new BaseClient();
171+
$return_str = $baseClient->send($sendVO);
172172
return $return_str;
173173

174174
}
@@ -194,8 +194,8 @@ public function sendCustomMesByAppkey($sendno, $send_description,
194194
$sendno, $send_description, $mes_title, $mes_content, $platform, $extras='',$override_msg_id='');
195195

196196
//发送通知 Or自定义消息
197-
$baseClent = new BaseClent();
198-
$return_str = $baseClent->send($sendVO);
197+
$baseClient = new BaseClient();
198+
$return_str = $baseClient->send($sendVO);
199199
return $return_str;
200200

201201
}
@@ -208,8 +208,8 @@ public function sendCustomMesByAppkey($sendno, $send_description,
208208
public function getReceivedApi($msg_ids)
209209
{
210210
$receivedVO = new ReceivedVO($this->app_key, $this->masterSecret, $msg_ids);
211-
$baseClent = new BaseClent();
212-
return $baseClent->getReceivedData($receivedVO);
211+
$baseClient = new BaseClient();
212+
return $baseClient->getReceivedData($receivedVO);
213213
}
214214
}
215215
?>

lib/jpush_api_php_client/baseClient.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @author xinxin
99
*
1010
*/
11-
class BaseClent
11+
class BaseClient
1212
{
1313
private $SEND_API_URL = "http://api.jpush.cn:8800/v2/push";
1414
private $RECEIVE_API_URL = "https://report.jpush.cn/v2/received";
@@ -57,6 +57,8 @@ public function send($sendVO)
5757
/**
5858
* 获取消息接收数量信息
5959
* @param unknown $receivedVO
60+
* 备注:发送采用https需要修改php.ini打开extension=php_openssl.dll
61+
*
6062
*/
6163
public function getReceivedData($receivedVO)
6264
{

0 commit comments

Comments
 (0)