Commit 6962dcdf by 冷斌

fix bug

parent ad5dc9fe
......@@ -761,13 +761,12 @@ class Model_Live extends PhalApi_Model_NotORM {
if(empty($app_key) || empty($master_secret) ){
return;
}
var_dump(1);
die;
$pushids = DI()->notorm->users_pushid
->select("pushid")
// ->limit(999)
->fetchAll();
$pushids=array_column($pushids,'pushid');
var_dump($pushids);
$apns_production=false;
......@@ -778,7 +777,7 @@ class Model_Live extends PhalApi_Model_NotORM {
$client = new \JPush\Client($app_key, $master_secret,null);
$title = '中奖全房间通知';
try{
$client->push()
$stauts = $client->push()
->setPlatform('all')
->message($title, [
'title' => $title,
......@@ -808,8 +807,10 @@ class Model_Live extends PhalApi_Model_NotORM {
'apns_production' => $apns_production,
))
->send();
var_dump($stauts);
die;
}catch (\Exception $exception) {
var_dump($exception);
var_dump($exception->getMessage());
die;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment