diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000..b0d091e
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/getui.iml b/.idea/getui.iml
new file mode 100644
index 0000000..0748e22
--- /dev/null
+++ b/.idea/getui.iml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..28a804d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..afb0a99
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/php.xml b/.idea/php.xml
new file mode 100644
index 0000000..8e04854
--- /dev/null
+++ b/.idea/php.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..cbd94e1
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,441 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ $PROJECT_DIR$/composer.json
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ push_result
+ 3WLep7mXkb82sVmep5z4K5
+ content-available
+ "content-available
+ transmission_type
+ is_offline
+
+
+ $PROJECT_DIR$/src
+
+
+
+
+
+
+
+
+
+
+
+ true
+ DEFINITION_ORDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1544239905053
+
+
+ 1544239905053
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/httpRequest/push/Base.php b/src/httpRequest/push/Base.php
index cc36f1a..9100e2f 100644
--- a/src/httpRequest/push/Base.php
+++ b/src/httpRequest/push/Base.php
@@ -64,6 +64,26 @@ abstract class Base
*/
protected $transmission_type = true;
+ public $is_offline = true;
+
+ /**
+ * @return bool
+ */
+ public function isOffline(): bool
+ {
+ return $this->is_offline;
+ }
+
+ /**
+ * @param bool $is_offline
+ * @return $this
+ */
+ public function setIsOffline(bool $is_offline)
+ {
+ $this->is_offline = $is_offline;
+ return $this;
+ }
+
/**
* @return bool
*/
@@ -229,6 +249,7 @@ public function getMessage()
$message = new Message();
$message->setAppKey($this->config->getAppKey());
$message->setMsgtype($this->getMsgtype());
+ $message->setIsOffline($this->isOffline());
$this->message = $message->getEntity();
return $this->message;
}
diff --git a/test/test.php b/test/test.php
index 1a325f7..5822801 100644
--- a/test/test.php
+++ b/test/test.php
@@ -28,9 +28,9 @@
//$user = \getui\httpRequest\user\User::make($config)->userAddTag("1f118061aef2af0aaca1617a6d48d2d7" , ["ceshi" , "wujie"])->request();
//查询用户标签
-$user = \getui\httpRequest\user\User::make($config)->userTag("1f118061aef2af0aaca1617a6d48d2d7")->request();
-var_dump($user->getRequestResult());
-exit();
+//$user = \getui\httpRequest\user\User::make($config)->userTag("1f118061aef2af0aaca1617a6d48d2d7")->request();
+//var_dump($user->getRequestResult());
+//exit();
//获取授权码
//$auth = new \getui\httpRequest\AuthToken($config);
@@ -39,7 +39,7 @@
//echo $auth->getAuthToken();
//exit();
-//$push = new \getui\httpRequest\push\PushSign($config);
+$push = new \getui\httpRequest\push\PushSign($config);
//$push->setMsgtype(\getui\template\Message::MSG_TYPE_LINK)
// ->setTitle("1")
// ->setText("22")
@@ -55,6 +55,15 @@
// ->setCid("1f118061aef2af0aaca1617a6d48d2d7")
// ->request();
//var_dump($push->getHttpModel()->getResultDataBody());
+//
+$push->setMsgtype(\getui\template\Message::MSG_TYPE_TRANSMISSION)
+ ->setTitle("1")
+ ->setText("22")
+ ->setTransmission("https://www.baidu.com")
+ ->setCid("d1c1b23f02757650260973bc6cf1d5b6")
+ ->request();
+var_dump($push->getHttpModel()->getResultDataBody());
+exit();
//批量推送