commit 0cfefbebd87c84881e3029bd2dfa4af4949bf6b0 Author: LL Date: Fri Dec 12 14:14:07 2025 +0800 feat: 添加基金监控系统基础功能 添加基金监控系统相关文件,包括邮件发送功能、基金数据配置、测试脚本等。主要包含以下内容: 1. 添加PHPMailer库及相关语言文件 2. 添加基金配置数据文件(fund_config.json, fund_names.json等) 3. 添加邮件发送测试脚本(test_email.php, test_fund_email.php等) 4. 添加.gitignore文件忽略不必要的文件 5. 添加composer.json配置依赖 Signed-off-by: LL diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..58021e4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,23 @@ +# 数据缓存目录 +data/cache/ + +# 错误日志文件 +email_error_log.txt + +# IDE配置文件 +.idea/ +.vscode/ +*.swp +*.swo +*~ + +# 操作系统文件 +.DS_Store +Thumbs.db + +# Composer依赖(如果项目中使用了vendor目录) +# vendor/ + +# 环境配置文件(如果有) +.env +.env.local diff --git a/404.html b/404.html new file mode 100644 index 0000000..99409b5 --- /dev/null +++ b/404.html @@ -0,0 +1,334 @@ + + + + + + 404 - 页面未找到 + + + + + + + +
+ + + + + +
+ + +
+
404
+

页面未找到

+

您访问的页面可能已经移动、删除或从未存在。请返回首页继续浏览我们的基金监控系统。

+ + 返回首页 + +
+ + + + + \ No newline at end of file diff --git a/PHPMailer/COMMITMENT b/PHPMailer/COMMITMENT new file mode 100644 index 0000000..a687e0d --- /dev/null +++ b/PHPMailer/COMMITMENT @@ -0,0 +1,46 @@ +GPL Cooperation Commitment +Version 1.0 + +Before filing or continuing to prosecute any legal proceeding or claim +(other than a Defensive Action) arising from termination of a Covered +License, we commit to extend to the person or entity ('you') accused +of violating the Covered License the following provisions regarding +cure and reinstatement, taken from GPL version 3. As used here, the +term 'this License' refers to the specific Covered License being +enforced. + + However, if you cease all violation of this License, then your + license from a particular copyright holder is reinstated (a) + provisionally, unless and until the copyright holder explicitly + and finally terminates your license, and (b) permanently, if the + copyright holder fails to notify you of the violation by some + reasonable means prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is + reinstated permanently if the copyright holder notifies you of the + violation by some reasonable means, this is the first time you + have received notice of violation of this License (for any work) + from that copyright holder, and you cure the violation prior to 30 + days after your receipt of the notice. + +We intend this Commitment to be irrevocable, and binding and +enforceable against us and assignees of or successors to our +copyrights. + +Definitions + +'Covered License' means the GNU General Public License, version 2 +(GPLv2), the GNU Lesser General Public License, version 2.1 +(LGPLv2.1), or the GNU Library General Public License, version 2 +(LGPLv2), all as published by the Free Software Foundation. + +'Defensive Action' means a legal proceeding or claim that We bring +against you in response to a prior proceeding or claim initiated by +you or your affiliate. + +'We' means each contributor to this repository as of the date of +inclusion of this file, including subsidiaries of a corporate +contributor. + +This work is available under a Creative Commons Attribution-ShareAlike +4.0 International license (https://creativecommons.org/licenses/by-sa/4.0/). diff --git a/PHPMailer/LICENSE b/PHPMailer/LICENSE new file mode 100644 index 0000000..f166cc5 --- /dev/null +++ b/PHPMailer/LICENSE @@ -0,0 +1,502 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! \ No newline at end of file diff --git a/PHPMailer/README.md b/PHPMailer/README.md new file mode 100644 index 0000000..f436668 --- /dev/null +++ b/PHPMailer/README.md @@ -0,0 +1,232 @@ +[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner2-direct.svg)](https://supportukrainenow.org/) + +![PHPMailer](https://raw.github.com/PHPMailer/PHPMailer/master/examples/images/phpmailer.png) + +# PHPMailer – A full-featured email creation and transfer class for PHP + +[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions) +[![codecov.io](https://codecov.io/gh/PHPMailer/PHPMailer/branch/master/graph/badge.svg?token=iORZpwmYmM)](https://codecov.io/gh/PHPMailer/PHPMailer) +[![Latest Stable Version](https://poser.pugx.org/phpmailer/phpmailer/v/stable.svg)](https://packagist.org/packages/phpmailer/phpmailer) +[![Total Downloads](https://poser.pugx.org/phpmailer/phpmailer/downloads)](https://packagist.org/packages/phpmailer/phpmailer) +[![License](https://poser.pugx.org/phpmailer/phpmailer/license.svg)](https://packagist.org/packages/phpmailer/phpmailer) +[![API Docs](https://github.com/phpmailer/phpmailer/workflows/Docs/badge.svg)](https://phpmailer.github.io/PHPMailer/) +[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer/badge)](https://api.securityscorecards.dev/projects/github.com/PHPMailer/PHPMailer) + +## Features +- Probably the world's most popular code for sending email from PHP! +- Used by many open-source projects: WordPress, Drupal, 1CRM, SugarCRM, Yii, Joomla! and many more +- Integrated SMTP support – send without a local mail server +- Send emails with multiple To, CC, BCC, and Reply-to addresses +- Multipart/alternative emails for mail clients that do not read HTML email +- Add attachments, including inline +- Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings +- Full UTF-8 support when using servers that support `SMTPUTF8`. +- Support for iCal events in multiparts and attachments +- SMTP authentication with `LOGIN`, `PLAIN`, `CRAM-MD5`, and `XOAUTH2` mechanisms over SMTPS and SMTP+STARTTLS transports +- Validates email addresses automatically +- Protects against header injection attacks +- Error messages in over 50 languages! +- DKIM and S/MIME signing support +- Compatible with PHP 5.5 and later, including PHP 8.5 +- Namespaced to prevent name clashes +- Much more! + +## Why you might need it +Many PHP developers need to send email from their code. The only PHP function that supports this directly is [`mail()`](https://www.php.net/manual/en/function.mail.php). However, it does not provide any assistance for making use of popular features such as authentication, HTML messages, and attachments. + +Formatting email correctly is surprisingly difficult. There are myriad overlapping (and conflicting) standards, requiring tight adherence to horribly complicated formatting and encoding rules – the vast majority of code that you'll find online that uses the `mail()` function directly is just plain wrong, if not unsafe! + +The PHP `mail()` function usually sends via a local mail server, typically fronted by a `sendmail` binary on Linux, BSD, and macOS platforms, however, Windows usually doesn't include a local mail server; PHPMailer's integrated SMTP client allows email sending on all platforms without needing a local mail server. Be aware though, that the `mail()` function should be avoided when possible; it's both faster and [safer](https://exploitbox.io/paper/Pwning-PHP-Mail-Function-For-Fun-And-RCE.html) to use SMTP to localhost. + +*Please* don't be tempted to do it yourself – if you don't use PHPMailer, there are many other excellent libraries that +you should look at before rolling your own. Try [Symfony Mailer](https://symfony.com/doc/current/mailer.html), [Laminas/Mail](https://docs.laminas.dev/laminas-mail/), [ZetaComponents](https://github.com/zetacomponents/Mail), etc. + +## License +This software is distributed under the [LGPL 2.1](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html) license, along with the [GPL Cooperation Commitment](https://gplcc.github.io/gplcc/). Please read [LICENSE](https://github.com/PHPMailer/PHPMailer/blob/master/LICENSE) for information on the software availability and distribution. + +## Installation & loading +PHPMailer is available on [Packagist](https://packagist.org/packages/phpmailer/phpmailer) (using semantic versioning), and installation via [Composer](https://getcomposer.org) is the recommended way to install PHPMailer. Just add this line to your `composer.json` file: + +```json +"phpmailer/phpmailer": "^7.0.0" +``` + +or run + +```sh +composer require phpmailer/phpmailer +``` + +Note that the `vendor` folder and the `vendor/autoload.php` script are generated by Composer; they are not part of PHPMailer. + +If you want to use XOAUTH2 authentication, you will also need to add a dependency on the `league/oauth2-client` and appropriate service adapters package in your `composer.json`, or take a look at +by @decomplexity's [SendOauth2 wrapper](https://github.com/decomplexity/SendOauth2), especially if you're using Microsoft services. + +Alternatively, if you're not using Composer, you +can [download PHPMailer as a zip file](https://github.com/PHPMailer/PHPMailer/archive/master.zip), (note that docs and examples are not included in the zip file), then copy the contents of the PHPMailer folder into one of the `include_path` directories specified in your PHP configuration and load each class file manually: + +```php +SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output + $mail->isSMTP(); //Send using SMTP + $mail->Host = 'smtp.example.com'; //Set the SMTP server to send through + $mail->SMTPAuth = true; //Enable SMTP authentication + $mail->Username = 'user@example.com'; //SMTP username + $mail->Password = 'secret'; //SMTP password + $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; //Enable implicit TLS encryption + $mail->Port = 465; //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS` + + //Recipients + $mail->setFrom('from@example.com', 'Mailer'); + $mail->addAddress('joe@example.net', 'Joe User'); //Add a recipient + $mail->addAddress('ellen@example.com'); //Name is optional + $mail->addReplyTo('info@example.com', 'Information'); + $mail->addCC('cc@example.com'); + $mail->addBCC('bcc@example.com'); + + //Attachments + $mail->addAttachment('/var/tmp/file.tar.gz'); //Add attachments + $mail->addAttachment('/tmp/image.jpg', 'new.jpg'); //Optional name + + //Content + $mail->isHTML(true); //Set email format to HTML + $mail->Subject = 'Here is the subject'; + $mail->Body = 'This is the HTML message body in bold!'; + $mail->AltBody = 'This is the body in plain text for non-HTML mail clients'; + + $mail->send(); + echo 'Message has been sent'; +} catch (Exception $e) { + echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}"; +} +``` + +You'll find plenty to play with in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder, which covers many common scenarios including sending through Gmail, building contact forms, sending to mailing lists, and more. + +If you are re-using the instance (e.g. when sending to a mailing list), you may need to clear the recipient list to avoid sending duplicate messages. See [the mailing list example](https://github.com/PHPMailer/PHPMailer/blob/master/examples/mailing_list.phps) for further guidance. + +That's it. You should now be ready to use PHPMailer! + +## Localization +PHPMailer defaults to English, but in the [language](https://github.com/PHPMailer/PHPMailer/tree/master/language/) folder, you'll find many translations for PHPMailer error messages that you may encounter. Their filenames contain [ISO 639-1](https://en.wikipedia.org/wiki/ISO_639-1) language code for the translations, for example `fr` for French. To specify a language, you need to tell PHPMailer which one to use, like this: + +```php +//To load the French version +$mail->setLanguage('fr', '/optional/path/to/language/directory/'); +``` + +We welcome corrections and new languages – if you're looking for corrections, run the [Language/TranslationCompletenessTest.php](https://github.com/PHPMailer/PHPMailer/blob/master/test/Language/TranslationCompletenessTest.php) script in the tests folder and it will show any missing translations. + +## Documentation +Start reading at the [GitHub wiki](https://github.com/PHPMailer/PHPMailer/wiki). If you're having trouble, head for [the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting) as it's frequently updated. + +Examples of how to use PHPMailer for common scenarios can be found in the [examples](https://github.com/PHPMailer/PHPMailer/tree/master/examples) folder. If you're looking for a good starting point, we recommend you start with [the Gmail example](https://github.com/PHPMailer/PHPMailer/tree/master/examples/gmail.phps). + +To reduce PHPMailer's deployed code footprint, examples are not included if you load PHPMailer via Composer or via [GitHub's zip file download](https://github.com/PHPMailer/PHPMailer/archive/master.zip), so you'll need to either clone the git repository or use the above links to get to the examples directly. + +Complete generated API documentation is [available online](https://phpmailer.github.io/PHPMailer/). + +You can generate complete API-level documentation by running `phpdoc` in the top-level folder, and documentation will appear in the `docs` folder, though you'll need to have [PHPDocumentor](https://www.phpdoc.org) installed. You may find [the unit tests](https://github.com/PHPMailer/PHPMailer/blob/master/test/PHPMailer/PHPMailerTest.php) a good reference for how to do various operations such as encryption. + +If the documentation doesn't cover what you need, search the [many questions on Stack Overflow](https://stackoverflow.com/questions/tagged/phpmailer), and before you ask a question about "SMTP Error: Could not connect to SMTP host.", [read the troubleshooting guide](https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting). + +## Tests +[PHPMailer tests](https://github.com/PHPMailer/PHPMailer/tree/master/test/) use PHPUnit 9, with [a polyfill](https://github.com/Yoast/PHPUnit-Polyfills) to let 9-style tests run on older PHPUnit and PHP versions. + +[![Test status](https://github.com/PHPMailer/PHPMailer/workflows/Tests/badge.svg)](https://github.com/PHPMailer/PHPMailer/actions) + +If this isn't passing, is there something you can do to help? + +## Security +Please disclose any vulnerabilities found responsibly – report security issues to the maintainers privately. + +See [SECURITY](https://github.com/PHPMailer/PHPMailer/tree/master/SECURITY.md) and [PHPMailer's security advisories on GitHub](https://github.com/PHPMailer/PHPMailer/security). + +## Contributing +Please submit bug reports, suggestions, and pull requests to the [GitHub issue tracker](https://github.com/PHPMailer/PHPMailer/issues). + +We're particularly interested in fixing edge cases, expanding test coverage, and updating translations. + +If you found a mistake in the docs, or want to add something, go ahead and amend the wiki – anyone can edit it. + +If you have git clones from prior to the move to the PHPMailer GitHub organisation, you'll need to update any remote URLs referencing the old GitHub location with a command like this from within your clone: + +```sh +git remote set-url upstream https://github.com/PHPMailer/PHPMailer.git +``` + +Please *don't* use the SourceForge or Google Code projects any more; they are obsolete and no longer maintained. + +## Sponsorship +Development time and resources for PHPMailer are provided by [Smartmessages.net](https://info.smartmessages.net/), the world's only privacy-first email marketing system. + +Smartmessages.net privacy-first email marketing logo + +Donations are very welcome, whether in beer 🍺, T-shirts 👕, or cold, hard cash 💰. Sponsorship through GitHub is a simple and convenient way to say "thank you" to PHPMailer's maintainers and contributors – just click the "Sponsor" button [on the project page](https://github.com/PHPMailer/PHPMailer). If your company uses PHPMailer, consider taking part in Tidelift's enterprise support programme. + +## PHPMailer For Enterprise + +Available as part of the Tidelift Subscription. + +The maintainers of PHPMailer and thousands of other packages are working with Tidelift to deliver commercial +support and maintenance for the open-source packages you use to build your applications. Save time, reduce risk, and +improve code health, while paying the maintainers of the exact packages you +use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-phpmailer-phpmailer?utm_source=packagist-phpmailer-phpmailer&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) + +## Changelog +See [changelog](changelog.md). + +## History +- PHPMailer was originally written in 2001 by Brent R. Matzelle as a [SourceForge project](https://sourceforge.net/projects/phpmailer/). +- [Marcus Bointon](https://github.com/Synchro) (`coolbru` on SF) and Andy Prevost (`codeworxtech`) took over the project in 2004. +- Became an Apache incubator project on Google Code in 2010, managed by Jim Jagielski. +- Marcus created [his fork on GitHub](https://github.com/Synchro/PHPMailer) in 2008. +- Jim and Marcus decide to join forces and use GitHub as the canonical and official repo for PHPMailer in 2013. +- PHPMailer moves to [the PHPMailer organisation](https://github.com/PHPMailer) on GitHub in 2013. + +### What's changed since moving from SourceForge? +- Official successor to the SourceForge and Google Code projects. +- Test suite. +- Continuous integration with GitHub Actions. +- Composer support. +- Public development. +- Additional languages and language strings. +- CRAM-MD5 authentication support. +- Preserves full repo history of authors, commits, and branches from the original SourceForge project. diff --git a/PHPMailer/SECURITY.md b/PHPMailer/SECURITY.md new file mode 100644 index 0000000..4f34026 --- /dev/null +++ b/PHPMailer/SECURITY.md @@ -0,0 +1,37 @@ +# Security notices relating to PHPMailer + +Please disclose any security issues or vulnerabilities found through [Tidelift's coordinated disclosure system](https://tidelift.com/security) or to the maintainers privately. + +PHPMailer 6.4.1 and earlier contain a vulnerability that can result in untrusted code being called (if such code is injected into the host project's scope by other means). If the `$patternselect` parameter to `validateAddress()` is set to `'php'` (the default, defined by `PHPMailer::$validator`), and the global namespace contains a function called `php`, it will be called in preference to the built-in validator of the same name. Mitigated in PHPMailer 6.5.0 by denying the use of simple strings as validator function names. Recorded as [CVE-2021-3603](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-3603). Reported by [Vikrant Singh Chauhan](mailto:vi@hackberry.xyz) via [huntr.dev](https://www.huntr.dev/). + +PHPMailer versions 6.4.1 and earlier contain a possible remote code execution vulnerability through the `$lang_path` parameter of the `setLanguage()` method. If the `$lang_path` parameter is passed unfiltered from user input, it can be set to [a UNC path](https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths), and if an attacker is also able to persuade the server to load a file from that UNC path, a script file under their control may be executed. This vulnerability only applies to systems that resolve UNC paths, typically only Microsoft Windows. +PHPMailer 6.5.0 mitigates this by no longer treating translation files as PHP code, but by parsing their text content directly. This approach avoids the possibility of executing unknown code while retaining backward compatibility. This isn't ideal, so the current translation format is deprecated and will be replaced in the next major release. Recorded as [CVE-2021-34551](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-34551). Reported by [Jilin Diting Information Technology Co., Ltd](https://listensec.com) via Tidelift. + +PHPMailer versions between 6.1.8 and 6.4.0 contain a regression of the earlier CVE-2018-19296 object injection vulnerability as a result of [a fix for Windows UNC paths in 6.1.8](https://github.com/PHPMailer/PHPMailer/commit/e2e07a355ee8ff36aba21d0242c5950c56e4c6f9). Recorded as [CVE-2020-36326](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-36326). Reported by Fariskhi Vidyan via Tidelift. 6.4.1 fixes this issue, and also enforces stricter checks for URL schemes in local path contexts. + +PHPMailer versions 6.1.5 and earlier contain an output escaping bug that occurs in `Content-Type` and `Content-Disposition` when filenames passed into `addAttachment` and other methods that accept attachment names contain double quote characters, in contravention of RFC822 3.4.1. No specific vulnerability has been found relating to this, but it could allow file attachments to bypass attachment filters that are based on matching filename extensions. Recorded as [CVE-2020-13625](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2020-13625). Reported by Elar Lang of Clarified Security. + +PHPMailer versions prior to 6.0.6 and 5.2.27 are vulnerable to an object injection attack by passing `phar://` paths into `addAttachment()` and other functions that may receive unfiltered local paths, possibly leading to RCE. Recorded as [CVE-2018-19296](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2018-19296). See [this article](https://knasmueller.net/5-answers-about-php-phar-exploitation) for more info on this type of vulnerability. Mitigated by blocking the use of paths containing URL-protocol style prefixes such as `phar://`. Reported by Sehun Oh of cyberone.kr. + +PHPMailer versions prior to 5.2.24 (released July 26th 2017) have an XSS vulnerability in one of the code examples, [CVE-2017-11503](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-11503). The `code_generator.phps` example did not filter user input prior to output. This file is distributed with a `.phps` extension, so it is not normally executable unless it is explicitly renamed, and the file is not included when PHPMailer is loaded through composer, so it is safe by default. There was also an undisclosed potential XSS vulnerability in the default exception handler (unused by default). Patches for both issues kindly provided by Patrick Monnerat of the Fedora Project. + +PHPMailer versions prior to 5.2.22 (released January 9th 2017) have a local file disclosure vulnerability, [CVE-2017-5223](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2017-5223). If content passed into `msgHTML()` is sourced from unfiltered user input, relative paths can map to absolute local file paths and added as attachments. Also note that `addAttachment` (just like `file_get_contents`, `passthru`, `unlink`, etc) should not be passed user-sourced params either! Reported by Yongxiang Li of Asiasecurity. + +PHPMailer versions prior to 5.2.20 (released December 28th 2016) are vulnerable to [CVE-2016-10045](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10045) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10045-Vuln-Patch-Bypass.html), and patched by Paul Buonopane (@Zenexer). + +PHPMailer versions prior to 5.2.18 (released December 2016) are vulnerable to [CVE-2016-10033](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-10033) a remote code execution vulnerability, responsibly reported by [Dawid Golunski](https://legalhackers.com/advisories/PHPMailer-Exploit-Remote-Code-Exec-CVE-2016-10033-Vuln.html). + +PHPMailer versions prior to 5.2.14 (released November 2015) are vulnerable to [CVE-2015-8476](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2015-8476) an SMTP CRLF injection bug permitting arbitrary message sending. + +PHPMailer versions prior to 5.2.10 (released May 2015) are vulnerable to [CVE-2008-5619](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2008-5619), a remote code execution vulnerability in the bundled html2text library. This file was removed in 5.2.10, so if you are using a version prior to that and make use of the html2text function, it's vitally important that you upgrade and remove this file. + +PHPMailer versions prior to 2.0.7 and 2.2.1 are vulnerable to [CVE-2012-0796](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2012-0796), an email header injection attack. + +Joomla 1.6.0 uses PHPMailer in an unsafe way, allowing it to reveal local file paths, reported in [CVE-2011-3747](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3747). + +PHPMailer didn't sanitise the `$lang_path` parameter in `SetLanguage`. This wasn't a problem in itself, but some apps (PHPClassifieds, ATutor) also failed to sanitise user-provided parameters passed to it, permitting semi-arbitrary local file inclusion, reported in [CVE-2010-4914](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2010-4914), [CVE-2007-2021](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-2021) and [CVE-2006-5734](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-5734). + +PHPMailer 1.7.2 and earlier contained a possible DDoS vulnerability reported in [CVE-2005-1807](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-1807). + +PHPMailer 1.7 and earlier (June 2003) have a possible vulnerability in the `SendmailSend` method where shell commands may not be sanitised. Reported in [CVE-2007-3215](https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2007-3215). + diff --git a/PHPMailer/SMTPUTF8.md b/PHPMailer/SMTPUTF8.md new file mode 100644 index 0000000..ca284ee --- /dev/null +++ b/PHPMailer/SMTPUTF8.md @@ -0,0 +1,48 @@ +# A short history of UTF-8 in email + +## Background + +For most of its existence, SMTP has been a 7-bit channel, only supporting US-ASCII characters. This has been a problem for many languages, especially those that use non-Latin scripts, and has led to the development of various workarounds. + +The first major improvement, introduced in 1994 in [RFC 1652](https://www.rfc-editor.org/rfc/rfc1652) and extended in 2011 in [RFC 6152](https://www.rfc-editor.org/rfc/rfc6152), was the addition of the `8BITMIME` SMTP extension, which allowed raw 8-bit data to be included in message bodies sent over SMTP. +This allowed the message *contents* to contain 8-bit data, including things like UTF-8 text, even though the SMTP protocol itself was still firmly 7-bit. This worked by having the server switch to 8-bit after the headers, and then back to 7-bit after the completion of a `DATA` command. + +From 1996, messages could support [RFC 2047 encoding](https://www.rfc-editor.org/rfc/rfc2047), which permitted inserting characters from any character set into header *values* (but not names), but only by encoding them in somewhat unreadable ways to allow them to survive passage through a 7-bit channel. An example with a subject of "Schrödinger's cat" would be: + +``` +Subject: =?utf-8?Q=Schr=C3=B6dinger=92s_Cat?= +``` + +Here the accented `ö` is encoded as `=C3=B6`, which is the UTF-8 encoding of the 2-byte character, and the whole thing is wrapped in `=?utf-8?Q?` to indicate that it uses the UTF-8 charset and `quoted-printable` encoding. This is a bit of a hack, and not very human-friendly, but it works. + +Similarly, 8-bit message bodies could be encoded using the same `quoted-printable` and `base64` content transfer encoding (CTE) schemes, which preserved the 8-bit content while encoding it in a format that could survive transmission through a 7-bit channel. + +Domain names were originally also stuck in a 7-bit world, actually even more constrained to only a subset of the US-ASCII character set. But of course, many people want to have domains in their own language/script. Internationalized domain name (IDN) permitted this, using yet another complex encoding scheme called punycode, defined for domain names in 2003 in [RFC 3492](https://www.rfc-editor.org/rfc/rfc3492). This finally allowed the domain part (after the `@`) of email addresses to contain UTF-8, though it was actually an illusion preserved by email client applications. For example, an address of +`user@café.example.com` translates to +`user@xn--caf-dma.example.com` in punycode, rendering it mostly unreadable, but 7-bit friendly, and remaining compatible with email clients that don't know about IDN. + +The one remaining part of email that could not handle UTF-8 is the local part of email addresses (the part before the `@`). + +I've only mentioned UTF-8 here, but most of these approaches also allowed other character sets that were popular, such as [the ISO-8859 family](https://en.wikipedia.org/wiki/ISO/IEC_8859). However, UTF-8 solves so many problems that these other character sets are gradually falling out of favour, as UTF-8 can support all languages. + +This patchwork of overlapping approaches has served us well, but we have to admit that it's a mess. + +## SMTPUTF8 + +`SMTPUTF8` is another SMTP extension, defined in [RFC 6531](https://www.rfc-editor.org/rfc/rfc6531) in 2012. This essentially solves the whole problem, allowing the entire SMTP conversation — commands, headers, and message bodies — to be sent in raw, unencoded UTF-8. + +But there's a problem with this approach: adoption. If you send a UTF-8 message to a recipient whose mail server doesn't support this format, the sender has to somehow downgrade the message to make it survive a transition to 7-bit. This is a hard problem to solve, especially since there is no way to make a 7-bit system support UTF-8 in the local parts of addresses. This downgrade problem is what held up the adoption of `SMTPUTF8` in PHPMailer for many years, but in that time the *de facto* approach has become to simply fail in that situation, and tell the recipient it's time they upgraded their mail server 😅. + +The vast majority of large email providers (gmail, Yahoo, Microsoft, etc), mail servers (postfix, exim, IIS, etc), and mail clients (Apple Mail, Outlook, Thunderbird, etc) now all support SMTPUTF8, so the need for backward compatibility is no longer what it was. + +## SMTPUTF8 in PHPMailer + +Several other PHP email libraries have implemented a halfway solution to `SMTPUTF8`, adding only the ability to support UTF-8 in email addresses, not elsewhere in the protocol. I wanted PHPMailer to do it "the right way", and this has taken much longer. PHPMailer now supports UTF-8 everywhere, and does not need to use transfer or header encodings for UTF-8 text when connecting to an `SMTPUTF8`-capable mail server. + +This support is handled automatically: if you add an email address that requires UTF-8, PHPMailer will use UTF-8 for everything. If not, it will fall back to 7-bit and encode the message as necessary. + +The one place you will need to be careful is in the selection of the address validator. By default, PHPMailer uses PHP's built-in `filter_var` validator, which does not allow UTF-8 email addresses. When PHPMailer spots that you have submitted a UTF-8 address, but have not altered the default validator, it will automatically switch to using a UTF-8-compatible validator. As soon as you do this, any SMTP connection you make will *require* that the server you connect to supports `SMTPUTF8`. You can select this validator explicitly by setting `PHPMailer::$validator = 'eai'` (an acronym for Email Address Internationalization). + +### Postfix gotcha + +Postfix has supported `SMTPUTF8` for a long time, but it has a peculiarity that it does not always advertise that it does so. However, rather surprisingly, if you use UTF-8 in the conversation, it will work anyway. diff --git a/PHPMailer/VERSION b/PHPMailer/VERSION new file mode 100644 index 0000000..9fe9ff9 --- /dev/null +++ b/PHPMailer/VERSION @@ -0,0 +1 @@ +7.0.1 diff --git a/PHPMailer/composer.json b/PHPMailer/composer.json new file mode 100644 index 0000000..63d0ffd --- /dev/null +++ b/PHPMailer/composer.json @@ -0,0 +1,84 @@ +{ + "name": "phpmailer/phpmailer", + "type": "library", + "description": "PHPMailer is a full-featured email creation and transfer class for PHP", + "authors": [ + { + "name": "Marcus Bointon", + "email": "phpmailer@synchromedia.co.uk" + }, + { + "name": "Jim Jagielski", + "email": "jimjag@gmail.com" + }, + { + "name": "Andy Prevost", + "email": "codeworxtech@users.sourceforge.net" + }, + { + "name": "Brent R. Matzelle" + } + ], + "funding": [ + { + "url": "https://github.com/Synchro", + "type": "github" + } + ], + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + }, + "lock": false + }, + "require": { + "php": ">=5.5.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*" + }, + "require-dev": { + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "doctrine/annotations": "^1.2.6 || ^1.13.3", + "php-parallel-lint/php-console-highlighter": "^1.0.0", + "php-parallel-lint/php-parallel-lint": "^1.3.2", + "phpcompatibility/php-compatibility": "^10.0.0@dev", + "squizlabs/php_codesniffer": "^3.13.5", + "yoast/phpunit-polyfills": "^1.0.4" + }, + "suggest": { + "decomplexity/SendOauth2": "Adapter for using XOAUTH2 authentication", + "ext-imap": "Needed to support advanced email address parsing according to RFC822", + "ext-mbstring": "Needed to send email in multibyte encoding charset or decode encoded addresses", + "ext-openssl": "Needed for secure SMTP sending and DKIM signing", + "greew/oauth2-azure-provider": "Needed for Microsoft Azure XOAUTH2 authentication", + "hayageek/oauth2-yahoo": "Needed for Yahoo XOAUTH2 authentication", + "league/oauth2-google": "Needed for Google XOAUTH2 authentication", + "psr/log": "For optional PSR-3 debug logging", + "symfony/polyfill-mbstring": "To support UTF-8 if the Mbstring PHP extension is not enabled (^1.2)", + "thenetworg/oauth2-azure": "Needed for Microsoft XOAUTH2 authentication", + "directorytree/imapengine": "For uploading sent messages via IMAP, see gmail example" + }, + "minimum-stability": "dev", + "prefer-stable": true, + "autoload": { + "psr-4": { + "PHPMailer\\PHPMailer\\": "src/" + } + }, + "autoload-dev": { + "psr-4": { + "PHPMailer\\Test\\": "test/" + } + }, + "license": "LGPL-2.1-only", + "scripts": { + "check": "./vendor/bin/phpcs", + "style": "./vendor/bin/phpcbf", + "test": "./vendor/bin/phpunit --no-coverage", + "coverage": "./vendor/bin/phpunit", + "lint": [ + "@php ./vendor/php-parallel-lint/php-parallel-lint/parallel-lint . --show-deprecated -e php,phps --exclude vendor --exclude .git --exclude build" + ] + } +} diff --git a/PHPMailer/get_oauth_token.php b/PHPMailer/get_oauth_token.php new file mode 100644 index 0000000..9342b9c --- /dev/null +++ b/PHPMailer/get_oauth_token.php @@ -0,0 +1,182 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +/** + * Get an OAuth2 token from an OAuth2 provider. + * * Install this script on your server so that it's accessible + * as [https/http]:////get_oauth_token.php + * e.g.: http://localhost/phpmailer/get_oauth_token.php + * * Ensure dependencies are installed with 'composer install' + * * Set up an app in your Google/Yahoo/Microsoft account + * * Set the script address as the app's redirect URL + * If no refresh token is obtained when running this file, + * revoke access to your app and run the script again. + */ + +namespace PHPMailer\PHPMailer; + +/** + * Aliases for League Provider Classes + * Make sure you have added these to your composer.json and run `composer install` + * Plenty to choose from here: + * @see https://oauth2-client.thephpleague.com/providers/thirdparty/ + */ +//@see https://github.com/thephpleague/oauth2-google +use League\OAuth2\Client\Provider\Google; +//@see https://packagist.org/packages/hayageek/oauth2-yahoo +use Hayageek\OAuth2\Client\Provider\Yahoo; +//@see https://github.com/stevenmaguire/oauth2-microsoft +use Stevenmaguire\OAuth2\Client\Provider\Microsoft; +//@see https://github.com/greew/oauth2-azure-provider +use Greew\OAuth2\Client\Provider\Azure; + +if (!isset($_GET['code']) && !isset($_POST['provider'])) { + ?> + + +
+

Select Provider

+ +
+ +
+ +
+ +
+

Enter id and secret

+

These details are obtained by setting up an app in your provider's developer console. +

+

ClientId:

+

ClientSecret:

+

TenantID (only relevant for Azure):

+ +
+ + + $clientId, + 'clientSecret' => $clientSecret, + 'redirectUri' => $redirectUri, + 'accessType' => 'offline' +]; + +$options = []; +$provider = null; + +switch ($providerName) { + case 'Google': + $provider = new Google($params); + $options = [ + 'scope' => [ + 'https://mail.google.com/' + ] + ]; + break; + case 'Yahoo': + $provider = new Yahoo($params); + break; + case 'Microsoft': + $provider = new Microsoft($params); + $options = [ + 'scope' => [ + 'wl.imap', + 'wl.offline_access' + ] + ]; + break; + case 'Azure': + $params['tenantId'] = $tenantId; + + $provider = new Azure($params); + $options = [ + 'scope' => [ + 'https://outlook.office.com/SMTP.Send', + 'offline_access' + ] + ]; + break; +} + +if (null === $provider) { + exit('Provider missing'); +} + +if (!isset($_GET['code'])) { + //If we don't have an authorization code then get one + $authUrl = $provider->getAuthorizationUrl($options); + $_SESSION['oauth2state'] = $provider->getState(); + header('Location: ' . $authUrl); + exit; + //Check given state against previously stored one to mitigate CSRF attack +} elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) { + unset($_SESSION['oauth2state']); + unset($_SESSION['provider']); + exit('Invalid state'); +} else { + unset($_SESSION['provider']); + //Try to get an access token (using the authorization code grant) + $token = $provider->getAccessToken( + 'authorization_code', + [ + 'code' => $_GET['code'] + ] + ); + //Use this to interact with an API on the users behalf + //Use this to get a new access token if the old one expires + echo 'Refresh Token: ', htmlspecialchars($token->getRefreshToken(), ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401); +} diff --git a/PHPMailer/language/phpmailer.lang-af.php b/PHPMailer/language/phpmailer.lang-af.php new file mode 100644 index 0000000..0b2a72d --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-af.php @@ -0,0 +1,26 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'خطأ SMTP : لا يمكن تأكيد الهوية.'; +$PHPMAILER_LANG['connect_host'] = 'خطأ SMTP: لا يمكن الاتصال بالخادم SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'خطأ SMTP: لم يتم قبول المعلومات .'; +$PHPMAILER_LANG['empty_message'] = 'نص الرسالة فارغ'; +$PHPMAILER_LANG['encoding'] = 'ترميز غير معروف: '; +$PHPMAILER_LANG['execute'] = 'لا يمكن تنفيذ : '; +$PHPMAILER_LANG['file_access'] = 'لا يمكن الوصول للملف: '; +$PHPMAILER_LANG['file_open'] = 'خطأ في الملف: لا يمكن فتحه: '; +$PHPMAILER_LANG['from_failed'] = 'خطأ على مستوى عنوان المرسل : '; +$PHPMAILER_LANG['instantiate'] = 'لا يمكن توفير خدمة البريد.'; +$PHPMAILER_LANG['invalid_address'] = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.'; +$PHPMAILER_LANG['provide_address'] = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.'; +$PHPMAILER_LANG['recipients_failed'] = 'خطأ SMTP: الأخطاء التالية فشل في الارسال لكل من : '; +$PHPMAILER_LANG['signing'] = 'خطأ في التوقيع: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() غير ممكن.'; +$PHPMAILER_LANG['smtp_error'] = 'خطأ على مستوى الخادم SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'لا يمكن تعيين أو إعادة تعيين متغير: '; +$PHPMAILER_LANG['extension_missing'] = 'الإضافة غير موجودة: '; diff --git a/PHPMailer/language/phpmailer.lang-as.php b/PHPMailer/language/phpmailer.lang-as.php new file mode 100644 index 0000000..327dfba --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-as.php @@ -0,0 +1,35 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP ত্ৰুটি: প্ৰমাণীকৰণ কৰিব নোৱাৰি'; +$PHPMAILER_LANG['buggy_php'] = 'আপোনাৰ PHP সংস্কৰণ এটা বাগৰ দ্বাৰা প্ৰভাৱিত হয় যাৰ ফলত নষ্ট বাৰ্তা হব পাৰে । ইয়াক সমাধান কৰিবলে, প্ৰেৰণ কৰিবলে SMTP ব্যৱহাৰ কৰক, আপোনাৰ php.ini ত mail.add_x_header বিকল্প নিষ্ক্ৰিয় কৰক, MacOS বা Linux লৈ সলনি কৰক, বা আপোনাৰ PHP সংস্কৰণ 7.0.17+ বা 7.1.3+ লৈ সলনি কৰক ।'; +$PHPMAILER_LANG['connect_host'] = 'SMTP ত্ৰুটি: SMTP চাৰ্ভাৰৰ সৈতে সংযোগ কৰিবলে অক্ষম'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP ত্ৰুটি: তথ্য গ্ৰহণ কৰা হোৱা নাই'; +$PHPMAILER_LANG['empty_message'] = 'বাৰ্তাৰ মূখ্য অংশ খালী।'; +$PHPMAILER_LANG['encoding'] = 'অজ্ঞাত এনকোডিং: '; +$PHPMAILER_LANG['execute'] = 'এক্সিকিউট কৰিব নোৱাৰি: '; +$PHPMAILER_LANG['extension_missing'] = 'সম্প্ৰসাৰণ নোহোৱা হৈছে: '; +$PHPMAILER_LANG['file_access'] = 'ফাইল অভিগম কৰিবলে অক্ষম: '; +$PHPMAILER_LANG['file_open'] = 'ফাইল ত্ৰুটি: ফাইল খোলিবলৈ অক্ষম: '; +$PHPMAILER_LANG['from_failed'] = 'নিম্নলিখিত প্ৰেৰকৰ ঠিকনা(সমূহ) ব্যৰ্থ: '; +$PHPMAILER_LANG['instantiate'] = 'মেইল ফাংচনৰ এটা উদাহৰণ সৃষ্টি কৰিবলে অক্ষম'; +$PHPMAILER_LANG['invalid_address'] = 'প্ৰেৰণ কৰিব নোৱাৰি: অবৈধ ইমেইল ঠিকনা: '; +$PHPMAILER_LANG['invalid_header'] = 'অবৈধ হেডাৰৰ নাম বা মান'; +$PHPMAILER_LANG['invalid_hostentry'] = 'অবৈধ হোষ্টেন্ট্ৰি: '; +$PHPMAILER_LANG['invalid_host'] = 'অবৈধ হস্ট:'; +$PHPMAILER_LANG['mailer_not_supported'] = 'মেইলাৰ সমৰ্থিত নহয়।'; +$PHPMAILER_LANG['provide_address'] = 'আপুনি অন্ততঃ এটা গন্তব্য ইমেইল ঠিকনা দিব লাগিব'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP ত্ৰুটি: নিম্নলিখিত গন্তব্যস্থানসমূহ ব্যৰ্থ: '; +$PHPMAILER_LANG['signing'] = 'স্বাক্ষৰ কৰাত ব্যৰ্থ: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP কড: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'অতিৰিক্ত SMTP তথ্য: '; +$PHPMAILER_LANG['smtp_detail'] = 'বিৱৰণ:'; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP সংযোগ() ব্যৰ্থ'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP চাৰ্ভাৰৰ ত্ৰুটি: '; +$PHPMAILER_LANG['variable_set'] = 'চলক নিৰ্ধাৰণ কৰিব পৰা নগল: '; +$PHPMAILER_LANG['extension_missing'] = 'অনুপস্থিত সম্প্ৰসাৰণ: '; diff --git a/PHPMailer/language/phpmailer.lang-az.php b/PHPMailer/language/phpmailer.lang-az.php new file mode 100644 index 0000000..552167e --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-az.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela prijava.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Nije moguće spojiti se sa SMTP serverom.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznata kriptografija: '; +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje sa navedenih e-mail adresa nije uspjelo: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedene e-mail adrese nije uspjelo: '; +$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; +$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; +$PHPMAILER_LANG['provide_address'] = 'Definišite barem jednu adresu primaoca.'; +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP server nije uspjelo.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP greška: '; +$PHPMAILER_LANG['variable_set'] = 'Nije moguće postaviti varijablu ili je vratiti nazad: '; +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje ekstenzija: '; diff --git a/PHPMailer/language/phpmailer.lang-be.php b/PHPMailer/language/phpmailer.lang-be.php new file mode 100644 index 0000000..9e92dda --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-be.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Памылка SMTP: памылка ідэнтыфікацыі.'; +$PHPMAILER_LANG['connect_host'] = 'Памылка SMTP: нельга ўстанавіць сувязь з SMTP-серверам.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Памылка SMTP: звесткі непрынятыя.'; +$PHPMAILER_LANG['empty_message'] = 'Пустое паведамленне.'; +$PHPMAILER_LANG['encoding'] = 'Невядомая кадыроўка тэксту: '; +$PHPMAILER_LANG['execute'] = 'Нельга выканаць каманду: '; +$PHPMAILER_LANG['file_access'] = 'Няма доступу да файла: '; +$PHPMAILER_LANG['file_open'] = 'Нельга адкрыць файл: '; +$PHPMAILER_LANG['from_failed'] = 'Няправільны адрас адпраўніка: '; +$PHPMAILER_LANG['instantiate'] = 'Нельга прымяніць функцыю mail().'; +$PHPMAILER_LANG['invalid_address'] = 'Нельга даслаць паведамленне, няправільны email атрымальніка: '; +$PHPMAILER_LANG['provide_address'] = 'Запоўніце, калі ласка, правільны email атрымальніка.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' - паштовы сервер не падтрымліваецца.'; +$PHPMAILER_LANG['recipients_failed'] = 'Памылка SMTP: няправільныя атрымальнікі: '; +$PHPMAILER_LANG['signing'] = 'Памылка подпісу паведамлення: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Памылка сувязі з SMTP-серверам.'; +$PHPMAILER_LANG['smtp_error'] = 'Памылка SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Нельга ўстанавіць або перамяніць значэнне пераменнай: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-bg.php b/PHPMailer/language/phpmailer.lang-bg.php new file mode 100644 index 0000000..c41f675 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-bg.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: Не може да се удостовери пред сървъра.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: Не може да се свърже с SMTP хоста.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: данните не са приети.'; +$PHPMAILER_LANG['empty_message'] = 'Съдържанието на съобщението е празно'; +$PHPMAILER_LANG['encoding'] = 'Неизвестно кодиране: '; +$PHPMAILER_LANG['execute'] = 'Не може да се изпълни: '; +$PHPMAILER_LANG['file_access'] = 'Няма достъп до файл: '; +$PHPMAILER_LANG['file_open'] = 'Файлова грешка: Не може да се отвори файл: '; +$PHPMAILER_LANG['from_failed'] = 'Следните адреси за подател са невалидни: '; +$PHPMAILER_LANG['instantiate'] = 'Не може да се инстанцира функцията mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Невалиден адрес: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' - пощенски сървър не се поддържа.'; +$PHPMAILER_LANG['provide_address'] = 'Трябва да предоставите поне един email адрес за получател.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: Следните адреси за Получател са невалидни: '; +$PHPMAILER_LANG['signing'] = 'Грешка при подписване: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP провален connect().'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP сървърна грешка: '; +$PHPMAILER_LANG['variable_set'] = 'Не може да се установи или възстанови променлива: '; +$PHPMAILER_LANG['extension_missing'] = 'Липсва разширение: '; diff --git a/PHPMailer/language/phpmailer.lang-bn.php b/PHPMailer/language/phpmailer.lang-bn.php new file mode 100644 index 0000000..4736510 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-bn.php @@ -0,0 +1,35 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP ত্রুটি: প্রমাণীকরণ করতে অক্ষম৷'; +$PHPMAILER_LANG['buggy_php'] = 'আপনার PHP সংস্করণ একটি বাগ দ্বারা প্রভাবিত হয় যার ফলে দূষিত বার্তা হতে পারে। এটি ঠিক করতে, পাঠাতে SMTP ব্যবহার করুন, আপনার php.ini এ mail.add_x_header বিকল্পটি নিষ্ক্রিয় করুন, MacOS বা Linux-এ স্যুইচ করুন, অথবা আপনার PHP সংস্করণকে 7.0.17+ বা 7.1.3+ এ পরিবর্তন করুন।'; +$PHPMAILER_LANG['connect_host'] = 'SMTP ত্রুটি: SMTP সার্ভারের সাথে সংযোগ করতে অক্ষম৷'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP ত্রুটি: ডেটা গ্রহণ করা হয়নি৷'; +$PHPMAILER_LANG['empty_message'] = 'বার্তার অংশটি খালি।'; +$PHPMAILER_LANG['encoding'] = 'অজানা এনকোডিং: '; +$PHPMAILER_LANG['execute'] = 'নির্বাহ করতে অক্ষম: '; +$PHPMAILER_LANG['extension_missing'] = 'এক্সটেনশন অনুপস্থিত:'; +$PHPMAILER_LANG['file_access'] = 'ফাইল অ্যাক্সেস করতে অক্ষম: '; +$PHPMAILER_LANG['file_open'] = 'ফাইল ত্রুটি: ফাইল খুলতে অক্ষম: '; +$PHPMAILER_LANG['from_failed'] = 'নিম্নলিখিত প্রেরকের ঠিকানা(গুলি) ব্যর্থ হয়েছে: '; +$PHPMAILER_LANG['instantiate'] = 'মেল ফাংশনের একটি উদাহরণ তৈরি করতে অক্ষম৷'; +$PHPMAILER_LANG['invalid_address'] = 'পাঠাতে অক্ষম: অবৈধ ইমেল ঠিকানা: '; +$PHPMAILER_LANG['invalid_header'] = 'অবৈধ হেডার নাম বা মান'; +$PHPMAILER_LANG['invalid_hostentry'] = 'অবৈধ হোস্টেন্ট্রি: '; +$PHPMAILER_LANG['invalid_host'] = 'অবৈধ হোস্ট:'; +$PHPMAILER_LANG['mailer_not_supported'] = 'মেইলার সমর্থিত নয়।'; +$PHPMAILER_LANG['provide_address'] = 'আপনাকে অবশ্যই অন্তত একটি গন্তব্য ইমেল ঠিকানা প্রদান করতে হবে৷'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP ত্রুটি: নিম্নলিখিত গন্তব্যগুলি ব্যর্থ হয়েছে: '; +$PHPMAILER_LANG['signing'] = 'স্বাক্ষর করতে ব্যর্থ হয়েছে: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP কোড: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'অতিরিক্ত SMTP তথ্য:'; +$PHPMAILER_LANG['smtp_detail'] = 'বর্ণনা: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP সংযোগ() ব্যর্থ হয়েছে৷'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP সার্ভার ত্রুটি: '; +$PHPMAILER_LANG['variable_set'] = 'পরিবর্তনশীল সেট করা যায়নি: '; +$PHPMAILER_LANG['extension_missing'] = 'অনুপস্থিত এক্সটেনশন: '; diff --git a/PHPMailer/language/phpmailer.lang-ca.php b/PHPMailer/language/phpmailer.lang-ca.php new file mode 100644 index 0000000..3468485 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-ca.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Error SMTP: No s’ha pogut autenticar.'; +$PHPMAILER_LANG['connect_host'] = 'Error SMTP: No es pot connectar al servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Dades no acceptades.'; +$PHPMAILER_LANG['empty_message'] = 'El cos del missatge està buit.'; +$PHPMAILER_LANG['encoding'] = 'Codificació desconeguda: '; +$PHPMAILER_LANG['execute'] = 'No es pot executar: '; +$PHPMAILER_LANG['file_access'] = 'No es pot accedir a l’arxiu: '; +$PHPMAILER_LANG['file_open'] = 'Error d’Arxiu: No es pot obrir l’arxiu: '; +$PHPMAILER_LANG['from_failed'] = 'La(s) següent(s) adreces de remitent han fallat: '; +$PHPMAILER_LANG['instantiate'] = 'No s’ha pogut crear una instància de la funció Mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Adreça d’email invalida: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no està suportat'; +$PHPMAILER_LANG['provide_address'] = 'S’ha de proveir almenys una adreça d’email com a destinatari.'; +$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Els següents destinataris han fallat: '; +$PHPMAILER_LANG['signing'] = 'Error al signar: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ha fallat el SMTP Connect().'; +$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'No s’ha pogut establir o restablir la variable: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-cs.php b/PHPMailer/language/phpmailer.lang-cs.php new file mode 100644 index 0000000..e770a1a --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-cs.php @@ -0,0 +1,28 @@ + + * Rewrite and extension of the work by Mikael Stokkebro + * + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP fejl: Login mislykkedes.'; +$PHPMAILER_LANG['buggy_php'] = 'Din version af PHP er berørt af en fejl, som gør at dine beskeder muligvis vises forkert. For at rette dette kan du skifte til SMTP, slå mail.add_x_header headeren i din php.ini fil fra, skifte til MacOS eller Linux eller opgradere din version af PHP til 7.0.17+ eller 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP fejl: Forbindelse til SMTP serveren kunne ikke oprettes.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fejl: Data blev ikke accepteret.'; +$PHPMAILER_LANG['empty_message'] = 'Meddelelsen er uden indhold'; +$PHPMAILER_LANG['encoding'] = 'Ukendt encode-format: '; +$PHPMAILER_LANG['execute'] = 'Kunne ikke afvikle: '; +$PHPMAILER_LANG['extension_missing'] = 'Udvidelse mangler: '; +$PHPMAILER_LANG['file_access'] = 'Kunne ikke tilgå filen: '; +$PHPMAILER_LANG['file_open'] = 'Fil fejl: Kunne ikke åbne filen: '; +$PHPMAILER_LANG['from_failed'] = 'Følgende afsenderadresse er forkert: '; +$PHPMAILER_LANG['instantiate'] = 'Email funktionen kunne ikke initialiseres.'; +$PHPMAILER_LANG['invalid_address'] = 'Udgyldig adresse: '; +$PHPMAILER_LANG['invalid_header'] = 'Ugyldig header navn eller værdi'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Ugyldig hostentry: '; +$PHPMAILER_LANG['invalid_host'] = 'Ugyldig vært: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer understøttes ikke.'; +$PHPMAILER_LANG['provide_address'] = 'Indtast mindst en modtagers email adresse.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP fejl: Følgende modtagere fejlede: '; +$PHPMAILER_LANG['signing'] = 'Signeringsfejl: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP kode: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Yderligere SMTP info: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fejlede.'; +$PHPMAILER_LANG['smtp_detail'] = 'Detalje: '; +$PHPMAILER_LANG['smtp_error'] = 'SMTP server fejl: '; +$PHPMAILER_LANG['variable_set'] = 'Kunne ikke definere eller nulstille variablen: '; +$PHPMAILER_LANG['no_smtputf8'] = 'Serveren understøtter ikke SMTPUTF8 som påkrævet for at sende til Unicode adresser'; +$PHPMAILER_LANG['imap_recommended'] = 'Brug af forenklet adresseparser anbefales ikke. Installer PHP IMAP udvidelsen for fuld RFC822 parsing.'; +$PHPMAILER_LANG['deprecated_argument'] = 'Udfaset argument: '; diff --git a/PHPMailer/language/phpmailer.lang-de.php b/PHPMailer/language/phpmailer.lang-de.php new file mode 100644 index 0000000..e7e59d2 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-de.php @@ -0,0 +1,28 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP-eraro: Ne eblis aŭtentigi.'; +$PHPMAILER_LANG['buggy_php'] = 'Via versio de PHP estas trafita de cimo, kiu povas kaŭzi difektitajn mesaĝojn. Por ripari tion, ŝanĝu al sendado per SMTP, malŝaltu la opcion mail.add_x_header en via php.ini, ŝanĝu al MacOS aŭ Linux, aŭ ĝisdatigu vian PHP al versio 7.0.17+ aŭ 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP-eraro: Ne eblis konektiĝi al la SMTP-gastiganto.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-eraro: Datumoj ne akceptitaj.'; +$PHPMAILER_LANG['empty_message'] = 'Mesaĝokorpo malplena'; +$PHPMAILER_LANG['encoding'] = 'Nekonata kodoprezento: '; +$PHPMAILER_LANG['execute'] = 'Ne eblis plenumi: '; +$PHPMAILER_LANG['extension_missing'] = 'Kromprogramo mankas: '; +$PHPMAILER_LANG['file_access'] = 'Ne eblis aliri la dosieron: '; +$PHPMAILER_LANG['file_open'] = 'Dosiera eraro: Ne eblis malfermi la dosieron: '; +$PHPMAILER_LANG['from_failed'] = 'La sekva(j) sendinto(j) malsukcesis: '; +$PHPMAILER_LANG['instantiate'] = 'Ne eblis funkciigi la retpoŝtan funkcion.'; +$PHPMAILER_LANG['invalid_address'] = 'Nevalida adreso: '; +$PHPMAILER_LANG['invalid_header'] = 'Nevalida kaplinia nomo aŭ valoro'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Nevalida enigo de gastiganto: '; +$PHPMAILER_LANG['invalid_host'] = 'Nevalida gastiganto: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' retpoŝtilo ne estas subtenata.'; +$PHPMAILER_LANG['provide_address'] = 'Vi devas provizi almenaŭ unu retpoŝtadreson de ricevonto.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP-eraro: La sekva(j) ricevonto(j) malsukcesis: '; +$PHPMAILER_LANG['signing'] = 'Subskriba eraro: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP-kodo: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Pliaj SMTP-informoj: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'La SMTP-konektiĝo malsukcesis.'; +$PHPMAILER_LANG['smtp_detail'] = 'Informoj: '; +$PHPMAILER_LANG['smtp_error'] = 'Eraro de SMTP-servilo: '; +$PHPMAILER_LANG['variable_set'] = 'Ne eblas agordi aŭ reagordi la variablon: '; +$PHPMAILER_LANG['no_smtputf8'] = 'La servilo ne subtenas SMTPUTF8, kiu estas bezonata por sendi al Unicode-adresoj.'; +$PHPMAILER_LANG['imap_recommended'] = 'Uzado de la simpligita adresanalizilo ne estas rekomendita. Instalu la IMAP-kromprogramon por PHP por plena RFC822-analizado.'; +$PHPMAILER_LANG['deprecated_argument'] = 'Malrekomendita argumento: '; diff --git a/PHPMailer/language/phpmailer.lang-es.php b/PHPMailer/language/phpmailer.lang-es.php new file mode 100644 index 0000000..e6a3d85 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-es.php @@ -0,0 +1,38 @@ + + * @author Crystopher Glodzienski Cardoso + * @author Daniel Cruz + */ + +$PHPMAILER_LANG['authenticate'] = 'Error SMTP: Imposible autentificar.'; +$PHPMAILER_LANG['buggy_php'] = 'Tu versión de PHP ha sido afectada por un bug que puede resultar en mensajes corruptos. Para arreglarlo, cambia a enviar usando SMTP, deshabilita la opción mail.add_x_header en tu php.ini, cambia a MacOS o Linux, o actualiza tu PHP a la versión 7.0.17+ o 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'Error SMTP: Imposible conectar al servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Error SMTP: Datos no aceptados.'; +$PHPMAILER_LANG['empty_message'] = 'El cuerpo del mensaje está vacío.'; +$PHPMAILER_LANG['encoding'] = 'Codificación desconocida: '; +$PHPMAILER_LANG['execute'] = 'Imposible ejecutar: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensión faltante: '; +$PHPMAILER_LANG['file_access'] = 'Imposible acceder al archivo: '; +$PHPMAILER_LANG['file_open'] = 'Error de Archivo: Imposible abrir el archivo: '; +$PHPMAILER_LANG['from_failed'] = 'La siguiente dirección de remitente falló: '; +$PHPMAILER_LANG['instantiate'] = 'Imposible crear una instancia de la función Mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Imposible enviar: dirección de email inválido: '; +$PHPMAILER_LANG['invalid_header'] = 'Nombre o valor de encabezado no válido'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Hostentry inválido: '; +$PHPMAILER_LANG['invalid_host'] = 'Host inválido: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer no está soportado.'; +$PHPMAILER_LANG['provide_address'] = 'Debe proporcionar al menos una dirección de email de destino.'; +$PHPMAILER_LANG['recipients_failed'] = 'Error SMTP: Los siguientes destinos fallaron: '; +$PHPMAILER_LANG['signing'] = 'Error al firmar: '; +$PHPMAILER_LANG['smtp_code'] = 'Código del servidor SMTP: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Información adicional del servidor SMTP: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falló.'; +$PHPMAILER_LANG['smtp_detail'] = 'Detalle: '; +$PHPMAILER_LANG['smtp_error'] = 'Error del servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'No se pudo configurar la variable: '; +$PHPMAILER_LANG['imap_recommended'] = 'No se recomienda usar el analizador de direcciones simplificado. Instala la extensión IMAP de PHP para un análisis RFC822 más completo.'; +$PHPMAILER_LANG['deprecated_argument'] = 'Argumento obsoleto: '; diff --git a/PHPMailer/language/phpmailer.lang-et.php b/PHPMailer/language/phpmailer.lang-et.php new file mode 100644 index 0000000..93addc9 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-et.php @@ -0,0 +1,28 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Viga: Autoriseerimise viga.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Viga: Ei õnnestunud luua ühendust SMTP serveriga.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Viga: Vigased andmed.'; +$PHPMAILER_LANG['empty_message'] = 'Tühi kirja sisu'; +$PHPMAILER_LANG["encoding"] = 'Tundmatu kodeering: '; +$PHPMAILER_LANG['execute'] = 'Tegevus ebaõnnestus: '; +$PHPMAILER_LANG['file_access'] = 'Pole piisavalt õiguseid järgneva faili avamiseks: '; +$PHPMAILER_LANG['file_open'] = 'Faili Viga: Faili avamine ebaõnnestus: '; +$PHPMAILER_LANG['from_failed'] = 'Järgnev saatja e-posti aadress on vigane: '; +$PHPMAILER_LANG['instantiate'] = 'mail funktiooni käivitamine ebaõnnestus.'; +$PHPMAILER_LANG['invalid_address'] = 'Saatmine peatatud, e-posti address vigane: '; +$PHPMAILER_LANG['provide_address'] = 'Te peate määrama vähemalt ühe saaja e-posti aadressi.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' maileri tugi puudub.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Viga: Järgnevate saajate e-posti aadressid on vigased: '; +$PHPMAILER_LANG["signing"] = 'Viga allkirjastamisel: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() ebaõnnestus.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP serveri viga: '; +$PHPMAILER_LANG['variable_set'] = 'Ei õnnestunud määrata või lähtestada muutujat: '; +$PHPMAILER_LANG['extension_missing'] = 'Nõutud laiendus on puudu: '; diff --git a/PHPMailer/language/phpmailer.lang-fa.php b/PHPMailer/language/phpmailer.lang-fa.php new file mode 100644 index 0000000..295a47f --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-fa.php @@ -0,0 +1,28 @@ + + * @author Mohammad Hossein Mojtahedi + */ + +$PHPMAILER_LANG['authenticate'] = 'خطای SMTP: احراز هویت با شکست مواجه شد.'; +$PHPMAILER_LANG['connect_host'] = 'خطای SMTP: اتصال به سرور SMTP برقرار نشد.'; +$PHPMAILER_LANG['data_not_accepted'] = 'خطای SMTP: داده‌ها نا‌درست هستند.'; +$PHPMAILER_LANG['empty_message'] = 'بخش متن پیام خالی است.'; +$PHPMAILER_LANG['encoding'] = 'کد‌گذاری نا‌شناخته: '; +$PHPMAILER_LANG['execute'] = 'امکان اجرا وجود ندارد: '; +$PHPMAILER_LANG['file_access'] = 'امکان دسترسی به فایل وجود ندارد: '; +$PHPMAILER_LANG['file_open'] = 'خطای File: امکان بازکردن فایل وجود ندارد: '; +$PHPMAILER_LANG['from_failed'] = 'آدرس فرستنده اشتباه است: '; +$PHPMAILER_LANG['instantiate'] = 'امکان معرفی تابع ایمیل وجود ندارد.'; +$PHPMAILER_LANG['invalid_address'] = 'آدرس ایمیل معتبر نیست: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer پشتیبانی نمی‌شود.'; +$PHPMAILER_LANG['provide_address'] = 'باید حداقل یک آدرس گیرنده وارد کنید.'; +$PHPMAILER_LANG['recipients_failed'] = 'خطای SMTP: ارسال به آدرس گیرنده با خطا مواجه شد: '; +$PHPMAILER_LANG['signing'] = 'خطا در امضا: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'خطا در اتصال به SMTP.'; +$PHPMAILER_LANG['smtp_error'] = 'خطا در SMTP Server: '; +$PHPMAILER_LANG['variable_set'] = 'امکان ارسال یا ارسال مجدد متغیر‌ها وجود ندارد: '; +$PHPMAILER_LANG['extension_missing'] = 'افزونه موجود نیست: '; diff --git a/PHPMailer/language/phpmailer.lang-fi.php b/PHPMailer/language/phpmailer.lang-fi.php new file mode 100644 index 0000000..6d1e637 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-fi.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP feilur: Kundi ikki góðkenna.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP feilur: Kundi ikki knýta samband við SMTP vert.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP feilur: Data ikki góðkent.'; +//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; +$PHPMAILER_LANG['encoding'] = 'Ókend encoding: '; +$PHPMAILER_LANG['execute'] = 'Kundi ikki útføra: '; +$PHPMAILER_LANG['file_access'] = 'Kundi ikki tilganga fílu: '; +$PHPMAILER_LANG['file_open'] = 'Fílu feilur: Kundi ikki opna fílu: '; +$PHPMAILER_LANG['from_failed'] = 'fylgjandi Frá/From adressa miseydnaðist: '; +$PHPMAILER_LANG['instantiate'] = 'Kuni ikki instantiera mail funktión.'; +//$PHPMAILER_LANG['invalid_address'] = 'Invalid address: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' er ikki supporterað.'; +$PHPMAILER_LANG['provide_address'] = 'Tú skal uppgeva minst móttakara-emailadressu(r).'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Feilur: Fylgjandi móttakarar miseydnaðust: '; +//$PHPMAILER_LANG['signing'] = 'Signing Error: '; +//$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; +//$PHPMAILER_LANG['smtp_error'] = 'SMTP server error: '; +//$PHPMAILER_LANG['variable_set'] = 'Cannot set or reset variable: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-fr.php b/PHPMailer/language/phpmailer.lang-fr.php new file mode 100644 index 0000000..a6d582d --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-fr.php @@ -0,0 +1,36 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Non puido ser autentificado.'; +$PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Non puido conectar co servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Datos non aceptados.'; +$PHPMAILER_LANG['empty_message'] = 'Corpo da mensaxe vacía'; +$PHPMAILER_LANG['encoding'] = 'Codificación descoñecida: '; +$PHPMAILER_LANG['execute'] = 'Non puido ser executado: '; +$PHPMAILER_LANG['file_access'] = 'Nob puido acceder ó arquivo: '; +$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: No puido abrir o arquivo: '; +$PHPMAILER_LANG['from_failed'] = 'A(s) seguinte(s) dirección(s) de remitente(s) deron erro: '; +$PHPMAILER_LANG['instantiate'] = 'Non puido crear unha instancia da función Mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Non puido envia-lo correo: dirección de email inválida: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer non está soportado.'; +$PHPMAILER_LANG['provide_address'] = 'Debe engadir polo menos unha dirección de email coma destino.'; +$PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Os seguintes destinos fallaron: '; +$PHPMAILER_LANG['signing'] = 'Erro ó firmar: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallou.'; +$PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Non puidemos axustar ou reaxustar a variábel: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-he.php b/PHPMailer/language/phpmailer.lang-he.php new file mode 100644 index 0000000..b123aa5 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-he.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'שגיאת SMTP: פעולת האימות נכשלה.'; +$PHPMAILER_LANG['connect_host'] = 'שגיאת SMTP: לא הצלחתי להתחבר לשרת SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'שגיאת SMTP: מידע לא התקבל.'; +$PHPMAILER_LANG['empty_message'] = 'גוף ההודעה ריק'; +$PHPMAILER_LANG['invalid_address'] = 'כתובת שגויה: '; +$PHPMAILER_LANG['encoding'] = 'קידוד לא מוכר: '; +$PHPMAILER_LANG['execute'] = 'לא הצלחתי להפעיל את: '; +$PHPMAILER_LANG['file_access'] = 'לא ניתן לגשת לקובץ: '; +$PHPMAILER_LANG['file_open'] = 'שגיאת קובץ: לא ניתן לגשת לקובץ: '; +$PHPMAILER_LANG['from_failed'] = 'כתובות הנמענים הבאות נכשלו: '; +$PHPMAILER_LANG['instantiate'] = 'לא הצלחתי להפעיל את פונקציית המייל.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' אינה נתמכת.'; +$PHPMAILER_LANG['provide_address'] = 'חובה לספק לפחות כתובת אחת של מקבל המייל.'; +$PHPMAILER_LANG['recipients_failed'] = 'שגיאת SMTP: הנמענים הבאים נכשלו: '; +$PHPMAILER_LANG['signing'] = 'שגיאת חתימה: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() failed.'; +$PHPMAILER_LANG['smtp_error'] = 'שגיאת שרת SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'לא ניתן לקבוע או לשנות את המשתנה: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-hi.php b/PHPMailer/language/phpmailer.lang-hi.php new file mode 100644 index 0000000..d2856e0 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-hi.php @@ -0,0 +1,35 @@ + + * Rewrite and extension of the work by Jayanti Suthar + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP त्रुटि: प्रामाणिकता की जांच नहीं हो सका। '; +$PHPMAILER_LANG['buggy_php'] = 'PHP का आपका संस्करण एक बग से प्रभावित है जिसके परिणामस्वरूप संदेश दूषित हो सकते हैं. इसे ठीक करने हेतु, भेजने के लिए SMTP का उपयोग करे, अपने php.ini में mail.add_x_header विकल्प को अक्षम करें, MacOS या Linux पर जाए, या अपने PHP संस्करण को 7.0.17+ या 7.1.3+ बदले.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP त्रुटि: SMTP सर्वर से कनेक्ट नहीं हो सका। '; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP त्रुटि: डेटा स्वीकार नहीं किया जाता है। '; +$PHPMAILER_LANG['empty_message'] = 'संदेश खाली है। '; +$PHPMAILER_LANG['encoding'] = 'अज्ञात एन्कोडिंग प्रकार। '; +$PHPMAILER_LANG['execute'] = 'आदेश को निष्पादित करने में विफल। '; +$PHPMAILER_LANG['extension_missing'] = 'एक्सटेन्षन गायब है: '; +$PHPMAILER_LANG['file_access'] = 'फ़ाइल उपलब्ध नहीं है। '; +$PHPMAILER_LANG['file_open'] = 'फ़ाइल त्रुटि: फाइल को खोला नहीं जा सका। '; +$PHPMAILER_LANG['from_failed'] = 'प्रेषक का पता गलत है। '; +$PHPMAILER_LANG['instantiate'] = 'मेल फ़ंक्शन कॉल नहीं कर सकता है।'; +$PHPMAILER_LANG['invalid_address'] = 'पता गलत है। '; +$PHPMAILER_LANG['invalid_header'] = 'अमान्य हेडर नाम या मान'; +$PHPMAILER_LANG['invalid_hostentry'] = 'अमान्य hostentry: '; +$PHPMAILER_LANG['invalid_host'] = 'अमान्य होस्ट: '; +$PHPMAILER_LANG['mailer_not_supported'] = 'मेल सर्वर के साथ काम नहीं करता है। '; +$PHPMAILER_LANG['provide_address'] = 'आपको कम से कम एक प्राप्तकर्ता का ई-मेल पता प्रदान करना होगा।'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP त्रुटि: निम्न प्राप्तकर्ताओं को पते भेजने में विफल। '; +$PHPMAILER_LANG['signing'] = 'साइनअप त्रुटि: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP कोड: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'अतिरिक्त SMTP जानकारी: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP का connect () फ़ंक्शन विफल हुआ। '; +$PHPMAILER_LANG['smtp_detail'] = 'विवरण: '; +$PHPMAILER_LANG['smtp_error'] = 'SMTP सर्वर त्रुटि। '; +$PHPMAILER_LANG['variable_set'] = 'चर को बना या संशोधित नहीं किया जा सकता। '; diff --git a/PHPMailer/language/phpmailer.lang-hr.php b/PHPMailer/language/phpmailer.lang-hr.php new file mode 100644 index 0000000..cacb6c3 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-hr.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Greška: Neuspjela autentikacija.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Greška: Ne mogu se spojiti na SMTP poslužitelj.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Greška: Podatci nisu prihvaćeni.'; +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznati encoding: '; +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP Greška: Slanje s navedenih e-mail adresa nije uspjelo: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Greška: Slanje na navedenih e-mail adresa nije uspjelo: '; +$PHPMAILER_LANG['instantiate'] = 'Ne mogu pokrenuti mail funkcionalnost.'; +$PHPMAILER_LANG['invalid_address'] = 'E-mail nije poslan. Neispravna e-mail adresa: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer nije podržan.'; +$PHPMAILER_LANG['provide_address'] = 'Definirajte barem jednu adresu primatelja.'; +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Spajanje na SMTP poslužitelj nije uspjelo.'; +$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP poslužitelja: '; +$PHPMAILER_LANG['variable_set'] = 'Ne mogu postaviti varijablu niti ju vratiti nazad: '; +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; diff --git a/PHPMailer/language/phpmailer.lang-hu.php b/PHPMailer/language/phpmailer.lang-hu.php new file mode 100644 index 0000000..e6b58b0 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-hu.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP -ի սխալ: չհաջողվեց ստուգել իսկությունը.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP -ի սխալ: չհաջողվեց կապ հաստատել SMTP սերվերի հետ.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP -ի սխալ: տվյալները ընդունված չեն.'; +$PHPMAILER_LANG['empty_message'] = 'Հաղորդագրությունը դատարկ է'; +$PHPMAILER_LANG['encoding'] = 'Կոդավորման անհայտ տեսակ: '; +$PHPMAILER_LANG['execute'] = 'Չհաջողվեց իրականացնել հրամանը: '; +$PHPMAILER_LANG['file_access'] = 'Ֆայլը հասանելի չէ: '; +$PHPMAILER_LANG['file_open'] = 'Ֆայլի սխալ: ֆայլը չհաջողվեց բացել: '; +$PHPMAILER_LANG['from_failed'] = 'Ուղարկողի հետևյալ հասցեն սխալ է: '; +$PHPMAILER_LANG['instantiate'] = 'Հնարավոր չէ կանչել mail ֆունկցիան.'; +$PHPMAILER_LANG['invalid_address'] = 'Հասցեն սխալ է: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' փոստային սերվերի հետ չի աշխատում.'; +$PHPMAILER_LANG['provide_address'] = 'Անհրաժեշտ է տրամադրել գոնե մեկ ստացողի e-mail հասցե.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP -ի սխալ: չի հաջողվել ուղարկել հետևյալ ստացողների հասցեներին: '; +$PHPMAILER_LANG['signing'] = 'Ստորագրման սխալ: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP -ի connect() ֆունկցիան չի հաջողվել'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP սերվերի սխալ: '; +$PHPMAILER_LANG['variable_set'] = 'Չի հաջողվում ստեղծել կամ վերափոխել փոփոխականը: '; +$PHPMAILER_LANG['extension_missing'] = 'Հավելվածը բացակայում է: '; diff --git a/PHPMailer/language/phpmailer.lang-id.php b/PHPMailer/language/phpmailer.lang-id.php new file mode 100644 index 0000000..212a11f --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-id.php @@ -0,0 +1,31 @@ + + * @author @januridp + * @author Ian Mustafa + */ + +$PHPMAILER_LANG['authenticate'] = 'Kesalahan SMTP: Tidak dapat mengotentikasi.'; +$PHPMAILER_LANG['connect_host'] = 'Kesalahan SMTP: Tidak dapat terhubung ke host SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Kesalahan SMTP: Data tidak diterima.'; +$PHPMAILER_LANG['empty_message'] = 'Isi pesan kosong'; +$PHPMAILER_LANG['encoding'] = 'Pengkodean karakter tidak dikenali: '; +$PHPMAILER_LANG['execute'] = 'Tidak dapat menjalankan proses: '; +$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses berkas: '; +$PHPMAILER_LANG['file_open'] = 'Kesalahan Berkas: Berkas tidak dapat dibuka: '; +$PHPMAILER_LANG['from_failed'] = 'Alamat pengirim berikut mengakibatkan kesalahan: '; +$PHPMAILER_LANG['instantiate'] = 'Tidak dapat menginisialisasi fungsi surel.'; +$PHPMAILER_LANG['invalid_address'] = 'Gagal terkirim, alamat surel tidak sesuai: '; +$PHPMAILER_LANG['invalid_hostentry'] = 'Gagal terkirim, entri host tidak sesuai: '; +$PHPMAILER_LANG['invalid_host'] = 'Gagal terkirim, host tidak sesuai: '; +$PHPMAILER_LANG['provide_address'] = 'Harus tersedia minimal satu alamat tujuan'; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tidak didukung'; +$PHPMAILER_LANG['recipients_failed'] = 'Kesalahan SMTP: Alamat tujuan berikut menyebabkan kesalahan: '; +$PHPMAILER_LANG['signing'] = 'Kesalahan dalam penandatangan SSL: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() gagal.'; +$PHPMAILER_LANG['smtp_error'] = 'Kesalahan pada pelayan SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Tidak dapat mengatur atau mengatur ulang variabel: '; +$PHPMAILER_LANG['extension_missing'] = 'Ekstensi PHP tidak tersedia: '; diff --git a/PHPMailer/language/phpmailer.lang-it.php b/PHPMailer/language/phpmailer.lang-it.php new file mode 100644 index 0000000..08a6b73 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-it.php @@ -0,0 +1,28 @@ + + * @author Stefano Sabatini + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Impossibile autenticarsi.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Impossibile connettersi all\'host SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dati non accettati dal server.'; +$PHPMAILER_LANG['empty_message'] = 'Il corpo del messaggio è vuoto'; +$PHPMAILER_LANG['encoding'] = 'Codifica dei caratteri sconosciuta: '; +$PHPMAILER_LANG['execute'] = 'Impossibile eseguire l\'operazione: '; +$PHPMAILER_LANG['file_access'] = 'Impossibile accedere al file: '; +$PHPMAILER_LANG['file_open'] = 'File Error: Impossibile aprire il file: '; +$PHPMAILER_LANG['from_failed'] = 'I seguenti indirizzi mittenti hanno generato errore: '; +$PHPMAILER_LANG['instantiate'] = 'Impossibile istanziare la funzione mail'; +$PHPMAILER_LANG['invalid_address'] = 'Impossibile inviare, l\'indirizzo email non è valido: '; +$PHPMAILER_LANG['provide_address'] = 'Deve essere fornito almeno un indirizzo ricevente'; +$PHPMAILER_LANG['mailer_not_supported'] = 'Mailer non supportato'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: I seguenti indirizzi destinatari hanno generato un errore: '; +$PHPMAILER_LANG['signing'] = 'Errore nella firma: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() fallita.'; +$PHPMAILER_LANG['smtp_error'] = 'Errore del server SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Impossibile impostare o resettare la variabile: '; +$PHPMAILER_LANG['extension_missing'] = 'Estensione mancante: '; diff --git a/PHPMailer/language/phpmailer.lang-ja.php b/PHPMailer/language/phpmailer.lang-ja.php new file mode 100644 index 0000000..d01869c --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-ja.php @@ -0,0 +1,37 @@ + + * @author Yoshi Sakai + * @author Arisophy + * @author ARAKI Musashi + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTPエラー: 認証できませんでした。'; +$PHPMAILER_LANG['buggy_php'] = 'ご利用のバージョンのPHPには不具合があり、メッセージが破損するおそれがあります。問題の解決は以下のいずれかを行ってください。SMTPでの送信に切り替える。php.iniのmail.add_x_headerをoffにする。MacOSまたはLinuxに切り替える。PHPバージョン7.0.17以降または7.1.3以降にアップグレードする。'; +$PHPMAILER_LANG['connect_host'] = 'SMTPエラー: SMTPホストに接続できませんでした。'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTPエラー: データが受け付けられませんでした。'; +$PHPMAILER_LANG['empty_message'] = 'メール本文が空です。'; +$PHPMAILER_LANG['encoding'] = '不明なエンコーディング: '; +$PHPMAILER_LANG['execute'] = '実行できませんでした: '; +$PHPMAILER_LANG['extension_missing'] = '拡張機能が見つかりません: '; +$PHPMAILER_LANG['file_access'] = 'ファイルにアクセスできません: '; +$PHPMAILER_LANG['file_open'] = 'ファイルエラー: ファイルを開けません: '; +$PHPMAILER_LANG['from_failed'] = 'Fromアドレスを登録する際にエラーが発生しました: '; +$PHPMAILER_LANG['instantiate'] = 'メール関数が正常に動作しませんでした。'; +$PHPMAILER_LANG['invalid_address'] = '不正なメールアドレス: '; +$PHPMAILER_LANG['invalid_header'] = '不正なヘッダー名またはその内容'; +$PHPMAILER_LANG['invalid_hostentry'] = '不正なホストエントリー: '; +$PHPMAILER_LANG['invalid_host'] = '不正なホスト: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' メーラーがサポートされていません。'; +$PHPMAILER_LANG['provide_address'] = '少なくとも1つメールアドレスを 指定する必要があります。'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTPエラー: 次の受信者アドレスに 間違いがあります: '; +$PHPMAILER_LANG['signing'] = '署名エラー: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTPコード: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'SMTP追加情報: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP接続に失敗しました。'; +$PHPMAILER_LANG['smtp_detail'] = '詳細: '; +$PHPMAILER_LANG['smtp_error'] = 'SMTPサーバーエラー: '; +$PHPMAILER_LANG['variable_set'] = '変数が存在しません: '; diff --git a/PHPMailer/language/phpmailer.lang-ka.php b/PHPMailer/language/phpmailer.lang-ka.php new file mode 100644 index 0000000..51fe403 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-ka.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP შეცდომა: ავტორიზაცია შეუძლებელია.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP შეცდომა: SMTP სერვერთან დაკავშირება შეუძლებელია.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP შეცდომა: მონაცემები არ იქნა მიღებული.'; +$PHPMAILER_LANG['encoding'] = 'კოდირების უცნობი ტიპი: '; +$PHPMAILER_LANG['execute'] = 'შეუძლებელია შემდეგი ბრძანების შესრულება: '; +$PHPMAILER_LANG['file_access'] = 'შეუძლებელია წვდომა ფაილთან: '; +$PHPMAILER_LANG['file_open'] = 'ფაილური სისტემის შეცდომა: არ იხსნება ფაილი: '; +$PHPMAILER_LANG['from_failed'] = 'გამგზავნის არასწორი მისამართი: '; +$PHPMAILER_LANG['instantiate'] = 'mail ფუნქციის გაშვება ვერ ხერხდება.'; +$PHPMAILER_LANG['provide_address'] = 'გთხოვთ მიუთითოთ ერთი ადრესატის e-mail მისამართი მაინც.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' - საფოსტო სერვერის მხარდაჭერა არ არის.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP შეცდომა: შემდეგ მისამართებზე გაგზავნა ვერ მოხერხდა: '; +$PHPMAILER_LANG['empty_message'] = 'შეტყობინება ცარიელია'; +$PHPMAILER_LANG['invalid_address'] = 'არ გაიგზავნა, e-mail მისამართის არასწორი ფორმატი: '; +$PHPMAILER_LANG['signing'] = 'ხელმოწერის შეცდომა: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'შეცდომა SMTP სერვერთან დაკავშირებისას'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP სერვერის შეცდომა: '; +$PHPMAILER_LANG['variable_set'] = 'შეუძლებელია შემდეგი ცვლადის შექმნა ან შეცვლა: '; +$PHPMAILER_LANG['extension_missing'] = 'ბიბლიოთეკა არ არსებობს: '; diff --git a/PHPMailer/language/phpmailer.lang-ko.php b/PHPMailer/language/phpmailer.lang-ko.php new file mode 100644 index 0000000..8c97dd9 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-ko.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP 오류: 인증할 수 없습니다.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP 오류: SMTP 호스트에 접속할 수 없습니다.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 오류: 데이터가 받아들여지지 않았습니다.'; +$PHPMAILER_LANG['empty_message'] = '메세지 내용이 없습니다'; +$PHPMAILER_LANG['encoding'] = '알 수 없는 인코딩: '; +$PHPMAILER_LANG['execute'] = '실행 불가: '; +$PHPMAILER_LANG['file_access'] = '파일 접근 불가: '; +$PHPMAILER_LANG['file_open'] = '파일 오류: 파일을 열 수 없습니다: '; +$PHPMAILER_LANG['from_failed'] = '다음 From 주소에서 오류가 발생했습니다: '; +$PHPMAILER_LANG['instantiate'] = 'mail 함수를 인스턴스화할 수 없습니다'; +$PHPMAILER_LANG['invalid_address'] = '잘못된 주소: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' 메일러는 지원되지 않습니다.'; +$PHPMAILER_LANG['provide_address'] = '적어도 한 개 이상의 수신자 메일 주소를 제공해야 합니다.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 오류: 다음 수신자에서 오류가 발생했습니다: '; +$PHPMAILER_LANG['signing'] = '서명 오류: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 연결을 실패하였습니다.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP 서버 오류: '; +$PHPMAILER_LANG['variable_set'] = '변수 설정 및 초기화 불가: '; +$PHPMAILER_LANG['extension_missing'] = '확장자 없음: '; diff --git a/PHPMailer/language/phpmailer.lang-ku.php b/PHPMailer/language/phpmailer.lang-ku.php new file mode 100644 index 0000000..cf3bda6 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-ku.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'هەڵەی SMTP : نەتوانرا کۆدەکە پشتڕاست بکرێتەوە '; +$PHPMAILER_LANG['connect_host'] = 'هەڵەی SMTP: نەتوانرا پەیوەندی بە سێرڤەرەوە بکات SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'هەڵەی SMTP: ئەو زانیاریانە قبوڵ نەکرا.'; +$PHPMAILER_LANG['empty_message'] = 'پەیامەکە بەتاڵە'; +$PHPMAILER_LANG['encoding'] = 'کۆدکردنی نەزانراو : '; +$PHPMAILER_LANG['execute'] = 'ناتوانرێت جێبەجێ بکرێت: '; +$PHPMAILER_LANG['file_access'] = 'ناتوانرێت دەستت بگات بە فایلەکە: '; +$PHPMAILER_LANG['file_open'] = 'هەڵەی پەڕگە(فایل): ناتوانرێت بکرێتەوە: '; +$PHPMAILER_LANG['from_failed'] = 'هەڵە لە ئاستی ناونیشانی نێرەر: '; +$PHPMAILER_LANG['instantiate'] = 'ناتوانرێت خزمەتگوزاری پۆستە پێشکەش بکرێت.'; +$PHPMAILER_LANG['invalid_address'] = 'نەتوانرا بنێردرێت ، چونکە ناونیشانی ئیمەیڵەکە نادروستە: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' مەیلەر پشتگیری ناکات'; +$PHPMAILER_LANG['provide_address'] = 'دەبێت ناونیشانی ئیمەیڵی لانیکەم یەک وەرگر دابین بکرێت.'; +$PHPMAILER_LANG['recipients_failed'] = ' هەڵەی SMTP: ئەم هەڵانەی خوارەوەشکستی هێنا لە ناردن بۆ هەردووکیان: '; +$PHPMAILER_LANG['signing'] = 'هەڵەی واژۆ: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect()پەیوەندی شکستی هێنا .'; +$PHPMAILER_LANG['smtp_error'] = 'هەڵەی ئاستی سێرڤەری SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'ناتوانرێت بیگۆڕیت یان دوبارە بینێریتەوە: '; +$PHPMAILER_LANG['extension_missing'] = 'درێژکراوە نەماوە: '; diff --git a/PHPMailer/language/phpmailer.lang-lt.php b/PHPMailer/language/phpmailer.lang-lt.php new file mode 100644 index 0000000..4f115b1 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-lt.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP klaida: autentifikacija nepavyko.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP klaida: nepavyksta prisijungti prie SMTP stoties.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP klaida: duomenys nepriimti.'; +$PHPMAILER_LANG['empty_message'] = 'Laiško turinys tuščias'; +$PHPMAILER_LANG['encoding'] = 'Neatpažinta koduotė: '; +$PHPMAILER_LANG['execute'] = 'Nepavyko įvykdyti komandos: '; +$PHPMAILER_LANG['file_access'] = 'Byla nepasiekiama: '; +$PHPMAILER_LANG['file_open'] = 'Bylos klaida: Nepavyksta atidaryti: '; +$PHPMAILER_LANG['from_failed'] = 'Neteisingas siuntėjo adresas: '; +$PHPMAILER_LANG['instantiate'] = 'Nepavyko paleisti mail funkcijos.'; +$PHPMAILER_LANG['invalid_address'] = 'Neteisingas adresas: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' pašto stotis nepalaikoma.'; +$PHPMAILER_LANG['provide_address'] = 'Nurodykite bent vieną gavėjo adresą.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP klaida: nepavyko išsiųsti šiems gavėjams: '; +$PHPMAILER_LANG['signing'] = 'Prisijungimo klaida: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP susijungimo klaida'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP stoties klaida: '; +$PHPMAILER_LANG['variable_set'] = 'Nepavyko priskirti reikšmės kintamajam: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-lv.php b/PHPMailer/language/phpmailer.lang-lv.php new file mode 100644 index 0000000..679b18c --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-lv.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP kļūda: Autorizācija neizdevās.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Kļūda: Nevar izveidot savienojumu ar SMTP serveri.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Kļūda: Nepieņem informāciju.'; +$PHPMAILER_LANG['empty_message'] = 'Ziņojuma teksts ir tukšs'; +$PHPMAILER_LANG['encoding'] = 'Neatpazīts kodējums: '; +$PHPMAILER_LANG['execute'] = 'Neizdevās izpildīt komandu: '; +$PHPMAILER_LANG['file_access'] = 'Fails nav pieejams: '; +$PHPMAILER_LANG['file_open'] = 'Faila kļūda: Nevar atvērt failu: '; +$PHPMAILER_LANG['from_failed'] = 'Nepareiza sūtītāja adrese: '; +$PHPMAILER_LANG['instantiate'] = 'Nevar palaist sūtīšanas funkciju.'; +$PHPMAILER_LANG['invalid_address'] = 'Nepareiza adrese: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' sūtītājs netiek atbalstīts.'; +$PHPMAILER_LANG['provide_address'] = 'Lūdzu, norādiet vismaz vienu adresātu.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP kļūda: neizdevās nosūtīt šādiem saņēmējiem: '; +$PHPMAILER_LANG['signing'] = 'Autorizācijas kļūda: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP savienojuma kļūda'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP servera kļūda: '; +$PHPMAILER_LANG['variable_set'] = 'Nevar piešķirt mainīgā vērtību: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-mg.php b/PHPMailer/language/phpmailer.lang-mg.php new file mode 100644 index 0000000..8a94f6a --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-mg.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Hadisoana SMTP: Tsy nahomby ny fanamarinana.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Tsy afaka mampifandray amin\'ny mpampiantrano SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP diso: tsy voarakitra ny angona.'; +$PHPMAILER_LANG['empty_message'] = 'Tsy misy ny votoaty mailaka.'; +$PHPMAILER_LANG['encoding'] = 'Tsy fantatra encoding: '; +$PHPMAILER_LANG['execute'] = 'Tsy afaka manatanteraka ity baiko manaraka ity: '; +$PHPMAILER_LANG['file_access'] = 'Tsy nahomby ny fidirana amin\'ity rakitra ity: '; +$PHPMAILER_LANG['file_open'] = 'Hadisoana diso: Tsy afaka nanokatra ity file manaraka ity: '; +$PHPMAILER_LANG['from_failed'] = 'Ny adiresy iraka manaraka dia diso: '; +$PHPMAILER_LANG['instantiate'] = 'Tsy afaka nanomboka ny hetsika mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Tsy mety ny adiresy: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer tsy manohana.'; +$PHPMAILER_LANG['provide_address'] = 'Alefaso azafady iray adiresy iray farafahakeliny.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Tsy mety ireo mpanaraka ireto: '; +$PHPMAILER_LANG['signing'] = 'Error nandritra ny sonia:'; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Tsy nahomby ny fifandraisana tamin\'ny server SMTP.'; +$PHPMAILER_LANG['smtp_error'] = 'Fahadisoana tamin\'ny server SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Tsy azo atao ny mametraka na mamerina ny variable: '; +$PHPMAILER_LANG['extension_missing'] = 'Tsy hita ny ampahany: '; diff --git a/PHPMailer/language/phpmailer.lang-mn.php b/PHPMailer/language/phpmailer.lang-mn.php new file mode 100644 index 0000000..04d262c --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-mn.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Ralat SMTP: Tidak dapat pengesahan.'; +$PHPMAILER_LANG['connect_host'] = 'Ralat SMTP: Tidak dapat menghubungi hos pelayan SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Ralat SMTP: Data tidak diterima oleh pelayan.'; +$PHPMAILER_LANG['empty_message'] = 'Tiada isi untuk mesej'; +$PHPMAILER_LANG['encoding'] = 'Pengekodan tidak diketahui: '; +$PHPMAILER_LANG['execute'] = 'Tidak dapat melaksanakan: '; +$PHPMAILER_LANG['file_access'] = 'Tidak dapat mengakses fail: '; +$PHPMAILER_LANG['file_open'] = 'Ralat Fail: Tidak dapat membuka fail: '; +$PHPMAILER_LANG['from_failed'] = 'Berikut merupakan ralat dari alamat e-mel: '; +$PHPMAILER_LANG['instantiate'] = 'Tidak dapat memberi contoh fungsi e-mel.'; +$PHPMAILER_LANG['invalid_address'] = 'Alamat emel tidak sah: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' jenis penghantar emel tidak disokong.'; +$PHPMAILER_LANG['provide_address'] = 'Anda perlu menyediakan sekurang-kurangnya satu alamat e-mel penerima.'; +$PHPMAILER_LANG['recipients_failed'] = 'Ralat SMTP: Penerima e-mel berikut telah gagal: '; +$PHPMAILER_LANG['signing'] = 'Ralat pada tanda tangan: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() telah gagal.'; +$PHPMAILER_LANG['smtp_error'] = 'Ralat pada pelayan SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Tidak boleh menetapkan atau menetapkan semula pembolehubah: '; +$PHPMAILER_LANG['extension_missing'] = 'Sambungan hilang: '; diff --git a/PHPMailer/language/phpmailer.lang-nb.php b/PHPMailer/language/phpmailer.lang-nb.php new file mode 100644 index 0000000..df8ff27 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-nb.php @@ -0,0 +1,37 @@ + + */ + + $PHPMAILER_LANG['authenticate'] = 'SMTP-feil: Kunne ikke autentisere.'; + $PHPMAILER_LANG['buggy_php'] = 'Din versjon av PHP er påvirket av en feil som kan føre til ødelagte meldinger. For å løse problemet kan du bytte til sending via SMTP, deaktivere mail.add_x_header-alternativet i php.ini, bytte til MacOS eller Linux, eller oppgradere PHP til versjon 7.0.17+ eller 7.1.3+.'; + $PHPMAILER_LANG['connect_host'] = 'SMTP-feil: Kunne ikke koble til SMTP-vert.'; + $PHPMAILER_LANG['data_not_accepted'] = 'SMTP-feil: data ikke akseptert.'; + $PHPMAILER_LANG['empty_message'] = 'Meldingsinnholdet er tomt'; + $PHPMAILER_LANG['encoding'] = 'Ukjent koding: '; + $PHPMAILER_LANG['execute'] = 'Kunne ikke utføres: '; + $PHPMAILER_LANG['extension_missing'] = 'Utvidelse mangler: '; + $PHPMAILER_LANG['file_access'] = 'Kunne ikke få tilgang til filen: '; + $PHPMAILER_LANG['file_open'] = 'Feil i fil: Kunne ikke åpne filen: '; + $PHPMAILER_LANG['from_failed'] = 'Følgende avsenderadresse mislyktes: '; + $PHPMAILER_LANG['instantiate'] = 'Kunne ikke starte e-postfunksjonen.'; + $PHPMAILER_LANG['invalid_address'] = 'Ugyldig adresse: '; + $PHPMAILER_LANG['invalid_header'] = 'Ugyldig headernavn eller verdi'; + $PHPMAILER_LANG['invalid_hostentry'] = 'Ugyldig vertsinngang: '; + $PHPMAILER_LANG['invalid_host'] = 'Ugyldig vert: '; + $PHPMAILER_LANG['mailer_not_supported'] = ' sender er ikke støttet.'; + $PHPMAILER_LANG['provide_address'] = 'Du må oppgi minst én mottaker-e-postadresse.'; + $PHPMAILER_LANG['recipients_failed'] = 'SMTP Feil: Følgende mottakeradresse feilet: '; + $PHPMAILER_LANG['signing'] = 'Signeringsfeil: '; + $PHPMAILER_LANG['smtp_code'] = 'SMTP-kode: '; + $PHPMAILER_LANG['smtp_code_ex'] = 'Ytterligere SMTP-info: '; + $PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP connect() mislyktes.'; + $PHPMAILER_LANG['smtp_detail'] = 'Detaljer: '; + $PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfeil: '; + $PHPMAILER_LANG['variable_set'] = 'Kan ikke angi eller tilbakestille variabel: '; + $PHPMAILER_LANG['no_smtputf8'] = 'Serveren støtter ikke SMTPUTF8, som er nødvendig for å sende til Unicode-adresser.'; + $PHPMAILER_LANG['imap_recommended'] = 'Det anbefales ikke å bruke forenklet adresseanalyse. Installer PHP IMAP-utvidelsen for full RFC822-analyse.'; + $PHPMAILER_LANG['deprecated_argument'] = 'Avviklet argument: '; diff --git a/PHPMailer/language/phpmailer.lang-nl.php b/PHPMailer/language/phpmailer.lang-nl.php new file mode 100644 index 0000000..cbb3622 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-nl.php @@ -0,0 +1,38 @@ + + * @author Robin van der Vliet + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP-fout: authenticatie mislukt.'; +$PHPMAILER_LANG['buggy_php'] = 'PHP-versie gedetecteerd die onderhevig is aan een bug die kan resulteren in gecorrumpeerde berichten. Om dit te voorkomen, gebruik SMTP voor het verzenden van berichten, zet de optie mail.add_x_header in uw php.ini uit, gebruik MacOS of Linux, of pas de gebruikte PHP-versie aan naar versie 7.0.17+ or 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP-fout: kon niet verbinden met SMTP-host.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP-fout: data niet geaccepteerd.'; +$PHPMAILER_LANG['empty_message'] = 'Berichttekst is leeg'; +$PHPMAILER_LANG['encoding'] = 'Onbekende codering: '; +$PHPMAILER_LANG['execute'] = 'Kon niet uitvoeren: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensie afwezig: '; +$PHPMAILER_LANG['file_access'] = 'Kreeg geen toegang tot bestand: '; +$PHPMAILER_LANG['file_open'] = 'Bestandsfout: kon bestand niet openen: '; +$PHPMAILER_LANG['from_failed'] = 'Het volgende afzenderadres is mislukt: '; +$PHPMAILER_LANG['instantiate'] = 'Kon mailfunctie niet initialiseren.'; +$PHPMAILER_LANG['invalid_address'] = 'Ongeldig adres: '; +$PHPMAILER_LANG['invalid_header'] = 'Ongeldige headernaam of -waarde'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Ongeldige hostentry: '; +$PHPMAILER_LANG['invalid_host'] = 'Ongeldige host: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer wordt niet ondersteund.'; +$PHPMAILER_LANG['provide_address'] = 'Er moet minstens één ontvanger worden opgegeven.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP-fout: de volgende ontvangers zijn mislukt: '; +$PHPMAILER_LANG['signing'] = 'Signeerfout: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP-code: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Aanvullende SMTP-informatie: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP-verbinding mislukt.'; +$PHPMAILER_LANG['smtp_detail'] = 'Detail: '; +$PHPMAILER_LANG['smtp_error'] = 'SMTP-serverfout: '; +$PHPMAILER_LANG['variable_set'] = 'Kan de volgende variabele niet instellen of herstellen: '; +$PHPMAILER_LANG['no_smtputf8'] = 'De server ondersteunt geen SMTPUTF8 dat nodig is om naar Unicode-adressen te sturen.'; +$PHPMAILER_LANG['imap_recommended'] = 'Het gebruik van de vereenvoudigde adresparser is niet aanbevolen. Installeer de IMAP-extensie voor PHP voor volledige RFC822-ondersteuning.'; +$PHPMAILER_LANG['deprecated_argument'] = 'Verouderd argument: '; diff --git a/PHPMailer/language/phpmailer.lang-pl.php b/PHPMailer/language/phpmailer.lang-pl.php new file mode 100644 index 0000000..35b3320 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-pl.php @@ -0,0 +1,33 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Erro SMTP: Falha na autenticação.'; +$PHPMAILER_LANG['buggy_php'] = 'A sua versão do PHP tem um bug que pode causar mensagens corrompidas. Para resolver, utilize o envio por SMTP, desative a opção mail.add_x_header no ficheiro php.ini, mude para MacOS ou Linux, ou atualize o PHP para a versão 7.0.17+ ou 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'Erro SMTP: Não foi possível ligar ao servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Erro SMTP: Dados não aceites.'; +$PHPMAILER_LANG['empty_message'] = 'A mensagem de e-mail está vazia.'; +$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; +$PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensão em falta: '; +$PHPMAILER_LANG['file_access'] = 'Não foi possível aceder ao ficheiro: '; +$PHPMAILER_LANG['file_open'] = 'Erro ao abrir o ficheiro: '; +$PHPMAILER_LANG['from_failed'] = 'O envio falhou para o seguinte endereço do remetente: '; +$PHPMAILER_LANG['instantiate'] = 'Não foi possível instanciar a função mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Endereço de e-mail inválido: '; +$PHPMAILER_LANG['invalid_header'] = 'Nome ou valor do cabeçalho inválido.'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Entrada de host inválida: '; +$PHPMAILER_LANG['invalid_host'] = 'Host inválido: '; +$PHPMAILER_LANG['mailer_not_supported'] = 'O cliente de e-mail não é suportado.'; +$PHPMAILER_LANG['provide_address'] = 'Deve fornecer pelo menos um endereço de destinatário.'; +$PHPMAILER_LANG['recipients_failed'] = 'Erro SMTP: Falha no envio para os seguintes destinatários: '; +$PHPMAILER_LANG['signing'] = 'Erro ao assinar: '; +$PHPMAILER_LANG['smtp_code'] = 'Código SMTP: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Informações adicionais SMTP: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Falha na função SMTP connect().'; +$PHPMAILER_LANG['smtp_detail'] = 'Detalhes: '; +$PHPMAILER_LANG['smtp_error'] = 'Erro do servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; diff --git a/PHPMailer/language/phpmailer.lang-pt_br.php b/PHPMailer/language/phpmailer.lang-pt_br.php new file mode 100644 index 0000000..5239865 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-pt_br.php @@ -0,0 +1,38 @@ + + * @author Lucas Guimarães + * @author Phelipe Alves + * @author Fabio Beneditto + * @author Geidson Benício Coelho + */ + +$PHPMAILER_LANG['authenticate'] = 'Erro de SMTP: Não foi possível autenticar.'; +$PHPMAILER_LANG['buggy_php'] = 'Sua versão do PHP é afetada por um bug que por resultar em messagens corrompidas. Para corrigir, mude para enviar usando SMTP, desative a opção mail.add_x_header em seu php.ini, mude para MacOS ou Linux, ou atualize seu PHP para versão 7.0.17+ ou 7.1.3+ '; +$PHPMAILER_LANG['connect_host'] = 'Erro de SMTP: Não foi possível conectar ao servidor SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Erro de SMTP: Dados rejeitados.'; +$PHPMAILER_LANG['empty_message'] = 'Mensagem vazia'; +$PHPMAILER_LANG['encoding'] = 'Codificação desconhecida: '; +$PHPMAILER_LANG['execute'] = 'Não foi possível executar: '; +$PHPMAILER_LANG['extension_missing'] = 'Extensão não existe: '; +$PHPMAILER_LANG['file_access'] = 'Não foi possível acessar o arquivo: '; +$PHPMAILER_LANG['file_open'] = 'Erro de Arquivo: Não foi possível abrir o arquivo: '; +$PHPMAILER_LANG['from_failed'] = 'Os seguintes remetentes falharam: '; +$PHPMAILER_LANG['instantiate'] = 'Não foi possível instanciar a função mail.'; +$PHPMAILER_LANG['invalid_address'] = 'Endereço de e-mail inválido: '; +$PHPMAILER_LANG['invalid_header'] = 'Nome ou valor de cabeçalho inválido'; +$PHPMAILER_LANG['invalid_hostentry'] = 'hostentry inválido: '; +$PHPMAILER_LANG['invalid_host'] = 'host inválido: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer não é suportado.'; +$PHPMAILER_LANG['provide_address'] = 'Você deve informar pelo menos um destinatário.'; +$PHPMAILER_LANG['recipients_failed'] = 'Erro de SMTP: Os seguintes destinatários falharam: '; +$PHPMAILER_LANG['signing'] = 'Erro de Assinatura: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() falhou.'; +$PHPMAILER_LANG['smtp_code'] = 'Código do servidor SMTP: '; +$PHPMAILER_LANG['smtp_error'] = 'Erro de servidor SMTP: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Informações adicionais do servidor SMTP: '; +$PHPMAILER_LANG['smtp_detail'] = 'Detalhes do servidor SMTP: '; +$PHPMAILER_LANG['variable_set'] = 'Não foi possível definir ou redefinir a variável: '; diff --git a/PHPMailer/language/phpmailer.lang-ro.php b/PHPMailer/language/phpmailer.lang-ro.php new file mode 100644 index 0000000..45bef91 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-ro.php @@ -0,0 +1,33 @@ + + * @author Foster Snowhill + * @author ProjectSoft + */ + +$PHPMAILER_LANG['authenticate'] = 'Ошибка SMTP: не удалось пройти аутентификацию.'; +$PHPMAILER_LANG['buggy_php'] = 'В вашей версии PHP есть ошибка, которая может привести к повреждению сообщений. Чтобы исправить, переключитесь на отправку по SMTP, отключите опцию mail.add_x_header в ваш php.ini, переключитесь на MacOS или Linux или обновите PHP до версии 7.0.17+ или 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'Ошибка SMTP: не удается подключиться к SMTP-серверу.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Ошибка SMTP: данные не приняты.'; +$PHPMAILER_LANG['empty_message'] = 'Пустое сообщение'; +$PHPMAILER_LANG['encoding'] = 'Неизвестная кодировка: '; +$PHPMAILER_LANG['execute'] = 'Невозможно выполнить команду: '; +$PHPMAILER_LANG['extension_missing'] = 'Расширение отсутствует: '; +$PHPMAILER_LANG['file_access'] = 'Нет доступа к файлу: '; +$PHPMAILER_LANG['file_open'] = 'Файловая ошибка: не удаётся открыть файл: '; +$PHPMAILER_LANG['from_failed'] = 'Неверный адрес отправителя: '; +$PHPMAILER_LANG['instantiate'] = 'Невозможно запустить функцию mail().'; +$PHPMAILER_LANG['invalid_address'] = 'Не отправлено из-за неправильного формата email-адреса: '; +$PHPMAILER_LANG['invalid_header'] = 'Неверное имя или значение заголовка'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Неверная запись хоста: '; +$PHPMAILER_LANG['invalid_host'] = 'Неверный хост: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' — почтовый сервер не поддерживается.'; +$PHPMAILER_LANG['provide_address'] = 'Вы должны указать хотя бы один адрес электронной почты получателя.'; +$PHPMAILER_LANG['recipients_failed'] = 'Ошибка SMTP: Ошибка следующих получателей: '; +$PHPMAILER_LANG['signing'] = 'Ошибка подписи: '; +$PHPMAILER_LANG['smtp_code'] = 'Код SMTP: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Дополнительная информация SMTP: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ошибка соединения с SMTP-сервером.'; +$PHPMAILER_LANG['smtp_detail'] = 'Детали: '; +$PHPMAILER_LANG['smtp_error'] = 'Ошибка SMTP-сервера: '; +$PHPMAILER_LANG['variable_set'] = 'Невозможно установить или сбросить переменную: '; diff --git a/PHPMailer/language/phpmailer.lang-si.php b/PHPMailer/language/phpmailer.lang-si.php new file mode 100644 index 0000000..dce502a --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-si.php @@ -0,0 +1,34 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP දෝෂය: සත්‍යාපනය අසාර්ථක විය.'; +$PHPMAILER_LANG['buggy_php'] = 'ඔබගේ PHP version එකෙහි පවතින දෝෂයක් නිසා email පණිවිඩ දෝෂ සහගත වීමේ හැකියාවක් ඇත. මෙය විසදීම සදහා SMTP භාවිතා කිරීම, mail.add_x_header INI setting එක අක්‍රීය කිරීම, MacOS හෝ Linux වලට මාරු වීම, හෝ ඔබගේ PHP version එක 7.0.17+ හෝ 7.1.3+ වලට අලුත් කිරීම කරගන්න.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP දෝෂය: සම්බන්ධ වීමට නොහැකි විය.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP දෝෂය: දත්ත පිළිගනු නොලැබේ.'; +$PHPMAILER_LANG['empty_message'] = 'පණිවිඩ අන්තර්ගතය හිස්'; +$PHPMAILER_LANG['encoding'] = 'නොදන්නා කේතනය: '; +$PHPMAILER_LANG['execute'] = 'ක්‍රියාත්මක කළ නොහැකි විය: '; +$PHPMAILER_LANG['extension_missing'] = 'Extension එක නොමැත: '; +$PHPMAILER_LANG['file_access'] = 'File එකට ප්‍රවේශ විය නොහැකි විය: '; +$PHPMAILER_LANG['file_open'] = 'File දෝෂය: File එක විවෘත කළ නොහැක: '; +$PHPMAILER_LANG['from_failed'] = 'පහත From ලිපිනයන් අසාර්ථක විය: '; +$PHPMAILER_LANG['instantiate'] = 'mail function එක ක්‍රියාත්මක කළ නොහැක.'; +$PHPMAILER_LANG['invalid_address'] = 'වලංගු නොවන ලිපිනය: '; +$PHPMAILER_LANG['invalid_header'] = 'වලංගු නොවන header නාමයක් හෝ අගයක්'; +$PHPMAILER_LANG['invalid_hostentry'] = 'වලංගු නොවන hostentry එකක්: '; +$PHPMAILER_LANG['invalid_host'] = 'වලංගු නොවන host එකක්: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer සහාය නොදක්වයි.'; +$PHPMAILER_LANG['provide_address'] = 'ඔබ අවම වශයෙන් එක් ලබන්නෙකුගේ ඊමේල් ලිපිනයක් සැපයිය යුතුය.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP දෝෂය: පහත ලබන්නන් අසමත් විය: '; +$PHPMAILER_LANG['signing'] = 'Sign කිරීමේ දෝෂය: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP කේතය: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'අමතර SMTP තොරතුරු: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP සම්බන්ධය අසාර්ථක විය.'; +$PHPMAILER_LANG['smtp_detail'] = 'තොරතුරු: '; +$PHPMAILER_LANG['smtp_error'] = 'SMTP දෝෂය: '; +$PHPMAILER_LANG['variable_set'] = 'Variable එක සැකසීමට හෝ නැවත සැකසීමට නොහැක: '; diff --git a/PHPMailer/language/phpmailer.lang-sk.php b/PHPMailer/language/phpmailer.lang-sk.php new file mode 100644 index 0000000..028f5bc --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-sk.php @@ -0,0 +1,30 @@ + + * @author Peter Orlický + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Chyba autentifikácie.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Nebolo možné nadviazať spojenie so SMTP serverom.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Dáta neboli prijaté'; +$PHPMAILER_LANG['empty_message'] = 'Prázdne telo správy.'; +$PHPMAILER_LANG['encoding'] = 'Neznáme kódovanie: '; +$PHPMAILER_LANG['execute'] = 'Nedá sa vykonať: '; +$PHPMAILER_LANG['file_access'] = 'Súbor nebol nájdený: '; +$PHPMAILER_LANG['file_open'] = 'File Error: Súbor sa otvoriť pre čítanie: '; +$PHPMAILER_LANG['from_failed'] = 'Následujúca adresa From je nesprávna: '; +$PHPMAILER_LANG['instantiate'] = 'Nedá sa vytvoriť inštancia emailovej funkcie.'; +$PHPMAILER_LANG['invalid_address'] = 'Neodoslané, emailová adresa je nesprávna: '; +$PHPMAILER_LANG['invalid_hostentry'] = 'Záznam hostiteľa je nesprávny: '; +$PHPMAILER_LANG['invalid_host'] = 'Hostiteľ je nesprávny: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' emailový klient nieje podporovaný.'; +$PHPMAILER_LANG['provide_address'] = 'Musíte zadať aspoň jednu emailovú adresu príjemcu.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Adresy príjemcov niesu správne '; +$PHPMAILER_LANG['signing'] = 'Chyba prihlasovania: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() zlyhalo.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP chyba serveru: '; +$PHPMAILER_LANG['variable_set'] = 'Nemožno nastaviť alebo resetovať premennú: '; +$PHPMAILER_LANG['extension_missing'] = 'Chýba rozšírenie: '; diff --git a/PHPMailer/language/phpmailer.lang-sl.php b/PHPMailer/language/phpmailer.lang-sl.php new file mode 100644 index 0000000..3e00c25 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-sl.php @@ -0,0 +1,36 @@ + + * @author Filip Š + * @author Blaž Oražem + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP napaka: Avtentikacija ni uspela.'; +$PHPMAILER_LANG['buggy_php'] = 'Na vašo PHP različico vpliva napaka, ki lahko povzroči poškodovana sporočila. Če želite težavo odpraviti, preklopite na pošiljanje prek SMTP, onemogočite možnost mail.add_x_header v vaši php.ini datoteki, preklopite na MacOS ali Linux, ali nadgradite vašo PHP zaličico na 7.0.17+ ali 7.1.3+.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP napaka: Vzpostavljanje povezave s SMTP gostiteljem ni uspelo.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP napaka: Strežnik zavrača podatke.'; +$PHPMAILER_LANG['empty_message'] = 'E-poštno sporočilo nima vsebine.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznan tip kodiranja: '; +$PHPMAILER_LANG['execute'] = 'Operacija ni uspela: '; +$PHPMAILER_LANG['extension_missing'] = 'Manjkajoča razširitev: '; +$PHPMAILER_LANG['file_access'] = 'Nimam dostopa do datoteke: '; +$PHPMAILER_LANG['file_open'] = 'Ne morem odpreti datoteke: '; +$PHPMAILER_LANG['from_failed'] = 'Neveljaven e-naslov pošiljatelja: '; +$PHPMAILER_LANG['instantiate'] = 'Ne morem inicializirati mail funkcije.'; +$PHPMAILER_LANG['invalid_address'] = 'E-poštno sporočilo ni bilo poslano. E-naslov je neveljaven: '; +$PHPMAILER_LANG['invalid_header'] = 'Neveljavno ime ali vrednost glave'; +$PHPMAILER_LANG['invalid_hostentry'] = 'Neveljaven vnos gostitelja: '; +$PHPMAILER_LANG['invalid_host'] = 'Neveljaven gostitelj: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer ni podprt.'; +$PHPMAILER_LANG['provide_address'] = 'Prosimo, vnesite vsaj enega naslovnika.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP napaka: Sledeči naslovniki so neveljavni: '; +$PHPMAILER_LANG['signing'] = 'Napaka pri podpisovanju: '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP koda: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'Dodatne informacije o SMTP: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ne morem vzpostaviti povezave s SMTP strežnikom.'; +$PHPMAILER_LANG['smtp_detail'] = 'Podrobnosti: '; +$PHPMAILER_LANG['smtp_error'] = 'Napaka SMTP strežnika: '; +$PHPMAILER_LANG['variable_set'] = 'Ne morem nastaviti oz. ponastaviti spremenljivke: '; diff --git a/PHPMailer/language/phpmailer.lang-sr.php b/PHPMailer/language/phpmailer.lang-sr.php new file mode 100644 index 0000000..0b5280f --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-sr.php @@ -0,0 +1,28 @@ + + * @author Miloš Milanović + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP грешка: аутентификација није успела.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP грешка: повезивање са SMTP сервером није успело.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP грешка: подаци нису прихваћени.'; +$PHPMAILER_LANG['empty_message'] = 'Садржај поруке је празан.'; +$PHPMAILER_LANG['encoding'] = 'Непознато кодирање: '; +$PHPMAILER_LANG['execute'] = 'Није могуће извршити наредбу: '; +$PHPMAILER_LANG['file_access'] = 'Није могуће приступити датотеци: '; +$PHPMAILER_LANG['file_open'] = 'Није могуће отворити датотеку: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP грешка: слање са следећих адреса није успело: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP грешка: слање на следеће адресе није успело: '; +$PHPMAILER_LANG['instantiate'] = 'Није могуће покренути mail функцију.'; +$PHPMAILER_LANG['invalid_address'] = 'Порука није послата. Неисправна адреса: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' мејлер није подржан.'; +$PHPMAILER_LANG['provide_address'] = 'Дефинишите бар једну адресу примаоца.'; +$PHPMAILER_LANG['signing'] = 'Грешка приликом пријаве: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Повезивање са SMTP сервером није успело.'; +$PHPMAILER_LANG['smtp_error'] = 'Грешка SMTP сервера: '; +$PHPMAILER_LANG['variable_set'] = 'Није могуће задати нити ресетовати променљиву: '; +$PHPMAILER_LANG['extension_missing'] = 'Недостаје проширење: '; diff --git a/PHPMailer/language/phpmailer.lang-sr_latn.php b/PHPMailer/language/phpmailer.lang-sr_latn.php new file mode 100644 index 0000000..6213832 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-sr_latn.php @@ -0,0 +1,28 @@ + + * @author Miloš Milanović + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP greška: autentifikacija nije uspela.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP greška: povezivanje sa SMTP serverom nije uspelo.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP greška: podaci nisu prihvaćeni.'; +$PHPMAILER_LANG['empty_message'] = 'Sadržaj poruke je prazan.'; +$PHPMAILER_LANG['encoding'] = 'Nepoznato kodiranje: '; +$PHPMAILER_LANG['execute'] = 'Nije moguće izvršiti naredbu: '; +$PHPMAILER_LANG['file_access'] = 'Nije moguće pristupiti datoteci: '; +$PHPMAILER_LANG['file_open'] = 'Nije moguće otvoriti datoteku: '; +$PHPMAILER_LANG['from_failed'] = 'SMTP greška: slanje sa sledećih adresa nije uspelo: '; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP greška: slanje na sledeće adrese nije uspelo: '; +$PHPMAILER_LANG['instantiate'] = 'Nije moguće pokrenuti mail funkciju.'; +$PHPMAILER_LANG['invalid_address'] = 'Poruka nije poslata. Neispravna adresa: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' majler nije podržan.'; +$PHPMAILER_LANG['provide_address'] = 'Definišite bar jednu adresu primaoca.'; +$PHPMAILER_LANG['signing'] = 'Greška prilikom prijave: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Povezivanje sa SMTP serverom nije uspelo.'; +$PHPMAILER_LANG['smtp_error'] = 'Greška SMTP servera: '; +$PHPMAILER_LANG['variable_set'] = 'Nije moguće zadati niti resetovati promenljivu: '; +$PHPMAILER_LANG['extension_missing'] = 'Nedostaje proširenje: '; diff --git a/PHPMailer/language/phpmailer.lang-sv.php b/PHPMailer/language/phpmailer.lang-sv.php new file mode 100644 index 0000000..9872c19 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-sv.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP fel: Kunde inte autentisera.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP fel: Kunde inte ansluta till SMTP-server.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP fel: Data accepterades inte.'; +//$PHPMAILER_LANG['empty_message'] = 'Message body empty'; +$PHPMAILER_LANG['encoding'] = 'Okänt encode-format: '; +$PHPMAILER_LANG['execute'] = 'Kunde inte köra: '; +$PHPMAILER_LANG['file_access'] = 'Ingen åtkomst till fil: '; +$PHPMAILER_LANG['file_open'] = 'Fil fel: Kunde inte öppna fil: '; +$PHPMAILER_LANG['from_failed'] = 'Följande avsändaradress är felaktig: '; +$PHPMAILER_LANG['instantiate'] = 'Kunde inte initiera e-postfunktion.'; +$PHPMAILER_LANG['invalid_address'] = 'Felaktig adress: '; +$PHPMAILER_LANG['provide_address'] = 'Du måste ange minst en mottagares e-postadress.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' mailer stöds inte.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP fel: Följande mottagare är felaktig: '; +$PHPMAILER_LANG['signing'] = 'Signeringsfel: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP Connect() misslyckades.'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP serverfel: '; +$PHPMAILER_LANG['variable_set'] = 'Kunde inte definiera eller återställa variabel: '; +$PHPMAILER_LANG['extension_missing'] = 'Tillägg ej tillgängligt: '; diff --git a/PHPMailer/language/phpmailer.lang-tl.php b/PHPMailer/language/phpmailer.lang-tl.php new file mode 100644 index 0000000..d15bed1 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-tl.php @@ -0,0 +1,28 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP Error: Hindi mapatotohanan.'; +$PHPMAILER_LANG['connect_host'] = 'SMTP Error: Hindi makakonekta sa SMTP host.'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP Error: Ang datos ay hindi naitanggap.'; +$PHPMAILER_LANG['empty_message'] = 'Walang laman ang mensahe'; +$PHPMAILER_LANG['encoding'] = 'Hindi alam ang encoding: '; +$PHPMAILER_LANG['execute'] = 'Hindi maisasagawa: '; +$PHPMAILER_LANG['file_access'] = 'Hindi ma-access ang file: '; +$PHPMAILER_LANG['file_open'] = 'File Error: Hindi mabuksan ang file: '; +$PHPMAILER_LANG['from_failed'] = 'Ang sumusunod na address ay nabigo: '; +$PHPMAILER_LANG['instantiate'] = 'Hindi maisimulan ang instance ng mail function.'; +$PHPMAILER_LANG['invalid_address'] = 'Hindi wasto ang address na naibigay: '; +$PHPMAILER_LANG['mailer_not_supported'] = 'Ang mailer ay hindi suportado.'; +$PHPMAILER_LANG['provide_address'] = 'Kailangan mong magbigay ng kahit isang email address na tatanggap.'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP Error: Ang mga sumusunod na tatanggap ay nabigo: '; +$PHPMAILER_LANG['signing'] = 'Hindi ma-sign: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Ang SMTP connect() ay nabigo.'; +$PHPMAILER_LANG['smtp_error'] = 'Ang server ng SMTP ay nabigo: '; +$PHPMAILER_LANG['variable_set'] = 'Hindi matatakda o ma-reset ang mga variables: '; +$PHPMAILER_LANG['extension_missing'] = 'Nawawala ang extension: '; diff --git a/PHPMailer/language/phpmailer.lang-tr.php b/PHPMailer/language/phpmailer.lang-tr.php new file mode 100644 index 0000000..3c45bc1 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-tr.php @@ -0,0 +1,38 @@ + + * @fixed by Boris Yurchenko + */ + +$PHPMAILER_LANG['authenticate'] = 'Помилка SMTP: помилка авторизації.'; +$PHPMAILER_LANG['connect_host'] = 'Помилка SMTP: не вдається під\'єднатися до SMTP-серверу.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Помилка SMTP: дані не прийнято.'; +$PHPMAILER_LANG['encoding'] = 'Невідоме кодування: '; +$PHPMAILER_LANG['execute'] = 'Неможливо виконати команду: '; +$PHPMAILER_LANG['file_access'] = 'Немає доступу до файлу: '; +$PHPMAILER_LANG['file_open'] = 'Помилка файлової системи: не вдається відкрити файл: '; +$PHPMAILER_LANG['from_failed'] = 'Невірна адреса відправника: '; +$PHPMAILER_LANG['instantiate'] = 'Неможливо запустити функцію mail().'; +$PHPMAILER_LANG['provide_address'] = 'Будь ласка, введіть хоча б одну email-адресу отримувача.'; +$PHPMAILER_LANG['mailer_not_supported'] = ' - поштовий сервер не підтримується.'; +$PHPMAILER_LANG['recipients_failed'] = 'Помилка SMTP: не вдалося відправлення для таких отримувачів: '; +$PHPMAILER_LANG['empty_message'] = 'Пусте повідомлення'; +$PHPMAILER_LANG['invalid_address'] = 'Не відправлено через неправильний формат email-адреси: '; +$PHPMAILER_LANG['signing'] = 'Помилка підпису: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Помилка з\'єднання з SMTP-сервером'; +$PHPMAILER_LANG['smtp_error'] = 'Помилка SMTP-сервера: '; +$PHPMAILER_LANG['variable_set'] = 'Неможливо встановити або скинути змінну: '; +$PHPMAILER_LANG['extension_missing'] = 'Розширення відсутнє: '; diff --git a/PHPMailer/language/phpmailer.lang-ur.php b/PHPMailer/language/phpmailer.lang-ur.php new file mode 100644 index 0000000..0b9de0f --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-ur.php @@ -0,0 +1,30 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP خرابی: تصدیق کرنے سے قاصر۔'; +$PHPMAILER_LANG['connect_host'] = 'SMTP خرابی: سرور سے منسلک ہونے سے قاصر۔'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP خرابی: ڈیٹا قبول نہیں کیا گیا۔'; +$PHPMAILER_LANG['empty_message'] = 'پیغام کی باڈی خالی ہے۔'; +$PHPMAILER_LANG['encoding'] = 'نامعلوم انکوڈنگ: '; +$PHPMAILER_LANG['execute'] = 'عمل کرنے کے قابل نہیں '; +$PHPMAILER_LANG['file_access'] = 'فائل تک رسائی سے قاصر:'; +$PHPMAILER_LANG['file_open'] = 'فائل کی خرابی: فائل کو کھولنے سے قاصر:'; +$PHPMAILER_LANG['from_failed'] = 'درج ذیل بھیجنے والے کا پتہ ناکام ہو گیا:'; +$PHPMAILER_LANG['instantiate'] = 'میل فنکشن کی مثال بنانے سے قاصر۔'; +$PHPMAILER_LANG['invalid_address'] = 'بھیجنے سے قاصر: غلط ای میل پتہ:'; +$PHPMAILER_LANG['mailer_not_supported'] = ' میلر تعاون یافتہ نہیں ہے۔'; +$PHPMAILER_LANG['provide_address'] = 'آپ کو کم از کم ایک منزل کا ای میل پتہ فراہم کرنا چاہیے۔'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP خرابی: درج ذیل پتہ پر نہیں بھیجا جاسکا: '; +$PHPMAILER_LANG['signing'] = 'دستخط کی خرابی: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP ملنا ناکام ہوا'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP سرور کی خرابی: '; +$PHPMAILER_LANG['variable_set'] = 'متغیر سیٹ نہیں کیا جا سکا: '; +$PHPMAILER_LANG['extension_missing'] = 'ایکٹینشن موجود نہیں ہے۔ '; +$PHPMAILER_LANG['smtp_code'] = 'SMTP سرور کوڈ: '; +$PHPMAILER_LANG['smtp_code_ex'] = 'اضافی SMTP سرور کی معلومات:'; +$PHPMAILER_LANG['invalid_header'] = 'غلط ہیڈر کا نام یا قدر'; diff --git a/PHPMailer/language/phpmailer.lang-vi.php b/PHPMailer/language/phpmailer.lang-vi.php new file mode 100644 index 0000000..d65576e --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-vi.php @@ -0,0 +1,27 @@ + + */ + +$PHPMAILER_LANG['authenticate'] = 'Lỗi SMTP: Không thể xác thực.'; +$PHPMAILER_LANG['connect_host'] = 'Lỗi SMTP: Không thể kết nối máy chủ SMTP.'; +$PHPMAILER_LANG['data_not_accepted'] = 'Lỗi SMTP: Dữ liệu không được chấp nhận.'; +$PHPMAILER_LANG['empty_message'] = 'Không có nội dung'; +$PHPMAILER_LANG['encoding'] = 'Mã hóa không xác định: '; +$PHPMAILER_LANG['execute'] = 'Không thực hiện được: '; +$PHPMAILER_LANG['file_access'] = 'Không thể truy cập tệp tin '; +$PHPMAILER_LANG['file_open'] = 'Lỗi Tập tin: Không thể mở tệp tin: '; +$PHPMAILER_LANG['from_failed'] = 'Lỗi địa chỉ gửi đi: '; +$PHPMAILER_LANG['instantiate'] = 'Không dùng được các hàm gửi thư.'; +$PHPMAILER_LANG['invalid_address'] = 'Đại chỉ emai không đúng: '; +$PHPMAILER_LANG['mailer_not_supported'] = ' trình gửi thư không được hỗ trợ.'; +$PHPMAILER_LANG['provide_address'] = 'Bạn phải cung cấp ít nhất một địa chỉ người nhận.'; +$PHPMAILER_LANG['recipients_failed'] = 'Lỗi SMTP: lỗi địa chỉ người nhận: '; +$PHPMAILER_LANG['signing'] = 'Lỗi đăng nhập: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'Lỗi kết nối với SMTP'; +$PHPMAILER_LANG['smtp_error'] = 'Lỗi máy chủ smtp '; +$PHPMAILER_LANG['variable_set'] = 'Không thể thiết lập hoặc thiết lập lại biến: '; +//$PHPMAILER_LANG['extension_missing'] = 'Extension missing: '; diff --git a/PHPMailer/language/phpmailer.lang-zh.php b/PHPMailer/language/phpmailer.lang-zh.php new file mode 100644 index 0000000..35e4e70 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-zh.php @@ -0,0 +1,29 @@ + + * @author Peter Dave Hello <@PeterDaveHello/> + * @author Jason Chiang + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP 錯誤:登入失敗。'; +$PHPMAILER_LANG['connect_host'] = 'SMTP 錯誤:無法連線到 SMTP 主機。'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 錯誤:無法接受的資料。'; +$PHPMAILER_LANG['empty_message'] = '郵件內容為空'; +$PHPMAILER_LANG['encoding'] = '未知編碼: '; +$PHPMAILER_LANG['execute'] = '無法執行:'; +$PHPMAILER_LANG['file_access'] = '無法存取檔案:'; +$PHPMAILER_LANG['file_open'] = '檔案錯誤:無法開啟檔案:'; +$PHPMAILER_LANG['from_failed'] = '發送地址錯誤:'; +$PHPMAILER_LANG['instantiate'] = '未知函數呼叫。'; +$PHPMAILER_LANG['invalid_address'] = '因為電子郵件地址無效,無法傳送: '; +$PHPMAILER_LANG['mailer_not_supported'] = '不支援的發信客戶端。'; +$PHPMAILER_LANG['provide_address'] = '必須提供至少一個收件人地址。'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 錯誤:以下收件人地址錯誤:'; +$PHPMAILER_LANG['signing'] = '電子簽章錯誤: '; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP 連線失敗'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP 伺服器錯誤: '; +$PHPMAILER_LANG['variable_set'] = '無法設定或重設變數: '; +$PHPMAILER_LANG['extension_missing'] = '遺失模組 Extension: '; diff --git a/PHPMailer/language/phpmailer.lang-zh_cn.php b/PHPMailer/language/phpmailer.lang-zh_cn.php new file mode 100644 index 0000000..03d4911 --- /dev/null +++ b/PHPMailer/language/phpmailer.lang-zh_cn.php @@ -0,0 +1,36 @@ + + * @author young + * @author Teddysun + */ + +$PHPMAILER_LANG['authenticate'] = 'SMTP 错误:登录失败。'; +$PHPMAILER_LANG['buggy_php'] = '您的 PHP 版本存在漏洞,可能会导致消息损坏。为修复此问题,请切换到使用 SMTP 发送,在您的 php.ini 中禁用 mail.add_x_header 选项。切换到 MacOS 或 Linux,或将您的 PHP 升级到 7.0.17+ 或 7.1.3+ 版本。'; +$PHPMAILER_LANG['connect_host'] = 'SMTP 错误:无法连接到 SMTP 主机。'; +$PHPMAILER_LANG['data_not_accepted'] = 'SMTP 错误:数据不被接受。'; +$PHPMAILER_LANG['empty_message'] = '邮件正文为空。'; +$PHPMAILER_LANG['encoding'] = '未知编码:'; +$PHPMAILER_LANG['execute'] = '无法执行:'; +$PHPMAILER_LANG['extension_missing'] = '缺少扩展名:'; +$PHPMAILER_LANG['file_access'] = '无法访问文件:'; +$PHPMAILER_LANG['file_open'] = '文件错误:无法打开文件:'; +$PHPMAILER_LANG['from_failed'] = '发送地址错误:'; +$PHPMAILER_LANG['instantiate'] = '未知函数调用。'; +$PHPMAILER_LANG['invalid_address'] = '发送失败,电子邮箱地址是无效的:'; +$PHPMAILER_LANG['mailer_not_supported'] = '发信客户端不被支持。'; +$PHPMAILER_LANG['provide_address'] = '必须提供至少一个收件人地址。'; +$PHPMAILER_LANG['recipients_failed'] = 'SMTP 错误:收件人地址错误:'; +$PHPMAILER_LANG['smtp_connect_failed'] = 'SMTP服务器连接失败。'; +$PHPMAILER_LANG['smtp_error'] = 'SMTP服务器出错:'; +$PHPMAILER_LANG['variable_set'] = '无法设置或重置变量:'; +$PHPMAILER_LANG['invalid_header'] = '无效的标题名称或值'; +$PHPMAILER_LANG['invalid_hostentry'] = '无效的hostentry: '; +$PHPMAILER_LANG['invalid_host'] = '无效的主机:'; +$PHPMAILER_LANG['signing'] = '签名错误:'; +$PHPMAILER_LANG['smtp_code'] = 'SMTP代码: '; +$PHPMAILER_LANG['smtp_code_ex'] = '附加SMTP信息: '; +$PHPMAILER_LANG['smtp_detail'] = '详情:'; diff --git a/PHPMailer/src/DSNConfigurator.php b/PHPMailer/src/DSNConfigurator.php new file mode 100644 index 0000000..7058c1f --- /dev/null +++ b/PHPMailer/src/DSNConfigurator.php @@ -0,0 +1,245 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2023 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +/** + * Configure PHPMailer with DSN string. + * + * @see https://en.wikipedia.org/wiki/Data_source_name + * + * @author Oleg Voronkovich + */ +class DSNConfigurator +{ + /** + * Create new PHPMailer instance configured by DSN. + * + * @param string $dsn DSN + * @param bool $exceptions Should we throw external exceptions? + * + * @return PHPMailer + */ + public static function mailer($dsn, $exceptions = null) + { + static $configurator = null; + + if (null === $configurator) { + $configurator = new DSNConfigurator(); + } + + return $configurator->configure(new PHPMailer($exceptions), $dsn); + } + + /** + * Configure PHPMailer instance with DSN string. + * + * @param PHPMailer $mailer PHPMailer instance + * @param string $dsn DSN + * + * @return PHPMailer + */ + public function configure(PHPMailer $mailer, $dsn) + { + $config = $this->parseDSN($dsn); + + $this->applyConfig($mailer, $config); + + return $mailer; + } + + /** + * Parse DSN string. + * + * @param string $dsn DSN + * + * @throws Exception If DSN is malformed + * + * @return array Configuration + */ + private function parseDSN($dsn) + { + $config = $this->parseUrl($dsn); + + if (false === $config || !isset($config['scheme']) || !isset($config['host'])) { + throw new Exception('Malformed DSN'); + } + + if (isset($config['query'])) { + parse_str($config['query'], $config['query']); + } + + return $config; + } + + /** + * Apply configuration to mailer. + * + * @param PHPMailer $mailer PHPMailer instance + * @param array $config Configuration + * + * @throws Exception If scheme is invalid + */ + private function applyConfig(PHPMailer $mailer, $config) + { + switch ($config['scheme']) { + case 'mail': + $mailer->isMail(); + break; + case 'sendmail': + $mailer->isSendmail(); + break; + case 'qmail': + $mailer->isQmail(); + break; + case 'smtp': + case 'smtps': + $mailer->isSMTP(); + $this->configureSMTP($mailer, $config); + break; + default: + throw new Exception( + sprintf( + 'Invalid scheme: "%s". Allowed values: "mail", "sendmail", "qmail", "smtp", "smtps".', + $config['scheme'] + ) + ); + } + + if (isset($config['query'])) { + $this->configureOptions($mailer, $config['query']); + } + } + + /** + * Configure SMTP. + * + * @param PHPMailer $mailer PHPMailer instance + * @param array $config Configuration + */ + private function configureSMTP($mailer, $config) + { + $isSMTPS = 'smtps' === $config['scheme']; + + if ($isSMTPS) { + $mailer->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; + } + + $mailer->Host = $config['host']; + + if (isset($config['port'])) { + $mailer->Port = $config['port']; + } elseif ($isSMTPS) { + $mailer->Port = SMTP::DEFAULT_SECURE_PORT; + } + + $mailer->SMTPAuth = isset($config['user']) || isset($config['pass']); + + if (isset($config['user'])) { + $mailer->Username = $config['user']; + } + + if (isset($config['pass'])) { + $mailer->Password = $config['pass']; + } + } + + /** + * Configure options. + * + * @param PHPMailer $mailer PHPMailer instance + * @param array $options Options + * + * @throws Exception If option is unknown + */ + private function configureOptions(PHPMailer $mailer, $options) + { + $allowedOptions = get_object_vars($mailer); + + unset($allowedOptions['Mailer']); + unset($allowedOptions['SMTPAuth']); + unset($allowedOptions['Username']); + unset($allowedOptions['Password']); + unset($allowedOptions['Hostname']); + unset($allowedOptions['Port']); + unset($allowedOptions['ErrorInfo']); + + $allowedOptions = \array_keys($allowedOptions); + + foreach ($options as $key => $value) { + if (!in_array($key, $allowedOptions)) { + throw new Exception( + sprintf( + 'Unknown option: "%s". Allowed values: "%s"', + $key, + implode('", "', $allowedOptions) + ) + ); + } + + switch ($key) { + case 'AllowEmpty': + case 'SMTPAutoTLS': + case 'SMTPKeepAlive': + case 'SingleTo': + case 'UseSendmailOptions': + case 'do_verp': + case 'DKIM_copyHeaderFields': + $mailer->$key = (bool) $value; + break; + case 'Priority': + case 'SMTPDebug': + case 'WordWrap': + $mailer->$key = (int) $value; + break; + default: + $mailer->$key = $value; + break; + } + } + } + + /** + * Parse a URL. + * Wrapper for the built-in parse_url function to work around a bug in PHP 5.5. + * + * @param string $url URL + * + * @return array|false + */ + protected function parseUrl($url) + { + if (\PHP_VERSION_ID >= 50600 || false === strpos($url, '?')) { + return parse_url($url); + } + + $chunks = explode('?', $url); + if (is_array($chunks)) { + $result = parse_url($chunks[0]); + if (is_array($result)) { + $result['query'] = $chunks[1]; + } + return $result; + } + + return false; + } +} diff --git a/PHPMailer/src/Exception.php b/PHPMailer/src/Exception.php new file mode 100644 index 0000000..09c1a2c --- /dev/null +++ b/PHPMailer/src/Exception.php @@ -0,0 +1,40 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +/** + * PHPMailer exception handler. + * + * @author Marcus Bointon + */ +class Exception extends \Exception +{ + /** + * Prettify error message output. + * + * @return string + */ + public function errorMessage() + { + return '' . htmlspecialchars($this->getMessage(), ENT_COMPAT | ENT_HTML401) . "
\n"; + } +} diff --git a/PHPMailer/src/OAuth.php b/PHPMailer/src/OAuth.php new file mode 100644 index 0000000..a7e9588 --- /dev/null +++ b/PHPMailer/src/OAuth.php @@ -0,0 +1,139 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +use League\OAuth2\Client\Grant\RefreshToken; +use League\OAuth2\Client\Provider\AbstractProvider; +use League\OAuth2\Client\Token\AccessToken; + +/** + * OAuth - OAuth2 authentication wrapper class. + * Uses the oauth2-client package from the League of Extraordinary Packages. + * + * @see https://oauth2-client.thephpleague.com + * + * @author Marcus Bointon (Synchro/coolbru) + */ +class OAuth implements OAuthTokenProvider +{ + /** + * An instance of the League OAuth Client Provider. + * + * @var AbstractProvider + */ + protected $provider; + + /** + * The current OAuth access token. + * + * @var AccessToken + */ + protected $oauthToken; + + /** + * The user's email address, usually used as the login ID + * and also the from address when sending email. + * + * @var string + */ + protected $oauthUserEmail = ''; + + /** + * The client secret, generated in the app definition of the service you're connecting to. + * + * @var string + */ + protected $oauthClientSecret = ''; + + /** + * The client ID, generated in the app definition of the service you're connecting to. + * + * @var string + */ + protected $oauthClientId = ''; + + /** + * The refresh token, used to obtain new AccessTokens. + * + * @var string + */ + protected $oauthRefreshToken = ''; + + /** + * OAuth constructor. + * + * @param array $options Associative array containing + * `provider`, `userName`, `clientSecret`, `clientId` and `refreshToken` elements + */ + public function __construct($options) + { + $this->provider = $options['provider']; + $this->oauthUserEmail = $options['userName']; + $this->oauthClientSecret = $options['clientSecret']; + $this->oauthClientId = $options['clientId']; + $this->oauthRefreshToken = $options['refreshToken']; + } + + /** + * Get a new RefreshToken. + * + * @return RefreshToken + */ + protected function getGrant() + { + return new RefreshToken(); + } + + /** + * Get a new AccessToken. + * + * @return AccessToken + */ + protected function getToken() + { + return $this->provider->getAccessToken( + $this->getGrant(), + ['refresh_token' => $this->oauthRefreshToken] + ); + } + + /** + * Generate a base64-encoded OAuth token. + * + * @return string + */ + public function getOauth64() + { + //Get a new token if it's not available or has expired + if (null === $this->oauthToken || $this->oauthToken->hasExpired()) { + $this->oauthToken = $this->getToken(); + } + + return base64_encode( + 'user=' . + $this->oauthUserEmail . + "\001auth=Bearer " . + $this->oauthToken . + "\001\001" + ); + } +} diff --git a/PHPMailer/src/OAuthTokenProvider.php b/PHPMailer/src/OAuthTokenProvider.php new file mode 100644 index 0000000..cbda1a1 --- /dev/null +++ b/PHPMailer/src/OAuthTokenProvider.php @@ -0,0 +1,44 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +/** + * OAuthTokenProvider - OAuth2 token provider interface. + * Provides base64 encoded OAuth2 auth strings for SMTP authentication. + * + * @see OAuth + * @see SMTP::authenticate() + * + * @author Peter Scopes (pdscopes) + * @author Marcus Bointon (Synchro/coolbru) + */ +interface OAuthTokenProvider +{ + /** + * Generate a base64-encoded OAuth token ensuring that the access token has not expired. + * The string to be base 64 encoded should be in the form: + * "user=\001auth=Bearer \001\001" + * + * @return string + */ + public function getOauth64(); +} diff --git a/PHPMailer/src/PHPMailer.php b/PHPMailer/src/PHPMailer.php new file mode 100644 index 0000000..eb48e85 --- /dev/null +++ b/PHPMailer/src/PHPMailer.php @@ -0,0 +1,5476 @@ + + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + * @copyright 2012 - 2020 Marcus Bointon + * @copyright 2010 - 2012 Jim Jagielski + * @copyright 2004 - 2009 Andy Prevost + * @license https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html GNU Lesser General Public License + * @note This program is distributed in the hope that it will be useful - WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. + */ + +namespace PHPMailer\PHPMailer; + +/** + * PHPMailer - PHP email creation and transport class. + * + * @author Marcus Bointon (Synchro/coolbru) + * @author Jim Jagielski (jimjag) + * @author Andy Prevost (codeworxtech) + * @author Brent R. Matzelle (original founder) + */ +class PHPMailer +{ + const CHARSET_ASCII = 'us-ascii'; + const CHARSET_ISO88591 = 'iso-8859-1'; + const CHARSET_UTF8 = 'utf-8'; + + const CONTENT_TYPE_PLAINTEXT = 'text/plain'; + const CONTENT_TYPE_TEXT_CALENDAR = 'text/calendar'; + const CONTENT_TYPE_TEXT_HTML = 'text/html'; + const CONTENT_TYPE_MULTIPART_ALTERNATIVE = 'multipart/alternative'; + const CONTENT_TYPE_MULTIPART_MIXED = 'multipart/mixed'; + const CONTENT_TYPE_MULTIPART_RELATED = 'multipart/related'; + + const ENCODING_7BIT = '7bit'; + const ENCODING_8BIT = '8bit'; + const ENCODING_BASE64 = 'base64'; + const ENCODING_BINARY = 'binary'; + const ENCODING_QUOTED_PRINTABLE = 'quoted-printable'; + + const ENCRYPTION_STARTTLS = 'tls'; + const ENCRYPTION_SMTPS = 'ssl'; + + const ICAL_METHOD_REQUEST = 'REQUEST'; + const ICAL_METHOD_PUBLISH = 'PUBLISH'; + const ICAL_METHOD_REPLY = 'REPLY'; + const ICAL_METHOD_ADD = 'ADD'; + const ICAL_METHOD_CANCEL = 'CANCEL'; + const ICAL_METHOD_REFRESH = 'REFRESH'; + const ICAL_METHOD_COUNTER = 'COUNTER'; + const ICAL_METHOD_DECLINECOUNTER = 'DECLINECOUNTER'; + + /** + * Email priority. + * Options: null (default), 1 = High, 3 = Normal, 5 = low. + * When null, the header is not set at all. + * + * @var int|null + */ + public $Priority; + + /** + * The character set of the message. + * + * @var string + */ + public $CharSet = self::CHARSET_ISO88591; + + /** + * The MIME Content-type of the message. + * + * @var string + */ + public $ContentType = self::CONTENT_TYPE_PLAINTEXT; + + /** + * The message encoding. + * Options: "8bit", "7bit", "binary", "base64", and "quoted-printable". + * + * @var string + */ + public $Encoding = self::ENCODING_8BIT; + + /** + * Holds the most recent mailer error message. + * + * @var string + */ + public $ErrorInfo = ''; + + /** + * The From email address for the message. + * + * @var string + */ + public $From = ''; + + /** + * The From name of the message. + * + * @var string + */ + public $FromName = ''; + + /** + * The envelope sender of the message. + * This will usually be turned into a Return-Path header by the receiver, + * and is the address that bounces will be sent to. + * If not empty, will be passed via `-f` to sendmail or as the 'MAIL FROM' value over SMTP. + * + * @var string + */ + public $Sender = ''; + + /** + * The Subject of the message. + * + * @var string + */ + public $Subject = ''; + + /** + * An HTML or plain text message body. + * If HTML then call isHTML(true). + * + * @var string + */ + public $Body = ''; + + /** + * The plain-text message body. + * This body can be read by mail clients that do not have HTML email + * capability such as mutt & Eudora. + * Clients that can read HTML will view the normal Body. + * + * @var string + */ + public $AltBody = ''; + + /** + * An iCal message part body. + * Only supported in simple alt or alt_inline message types + * To generate iCal event structures, use classes like EasyPeasyICS or iCalcreator. + * + * @see https://kigkonsult.se/iCalcreator/ + * + * @var string + */ + public $Ical = ''; + + /** + * Value-array of "method" in Contenttype header "text/calendar" + * + * @var string[] + */ + protected static $IcalMethods = [ + self::ICAL_METHOD_REQUEST, + self::ICAL_METHOD_PUBLISH, + self::ICAL_METHOD_REPLY, + self::ICAL_METHOD_ADD, + self::ICAL_METHOD_CANCEL, + self::ICAL_METHOD_REFRESH, + self::ICAL_METHOD_COUNTER, + self::ICAL_METHOD_DECLINECOUNTER, + ]; + + /** + * The complete compiled MIME message body. + * + * @var string + */ + protected $MIMEBody = ''; + + /** + * The complete compiled MIME message headers. + * + * @var string + */ + protected $MIMEHeader = ''; + + /** + * Extra headers that createHeader() doesn't fold in. + * + * @var string + */ + protected $mailHeader = ''; + + /** + * Word-wrap the message body to this number of chars. + * Set to 0 to not wrap. A useful value here is 78, for RFC2822 section 2.1.1 compliance. + * + * @see static::STD_LINE_LENGTH + * + * @var int + */ + public $WordWrap = 0; + + /** + * Which method to use to send mail. + * Options: "mail", "sendmail", or "smtp". + * + * @var string + */ + public $Mailer = 'mail'; + + /** + * The path to the sendmail program. + * + * @var string + */ + public $Sendmail = '/usr/sbin/sendmail'; + + /** + * Whether mail() uses a fully sendmail-compatible MTA. + * One which supports sendmail's "-oi -f" options. + * + * @var bool + */ + public $UseSendmailOptions = true; + + /** + * The email address that a reading confirmation should be sent to, also known as read receipt. + * + * @var string + */ + public $ConfirmReadingTo = ''; + + /** + * The hostname to use in the Message-ID header and as default HELO string. + * If empty, PHPMailer attempts to find one with, in order, + * $_SERVER['SERVER_NAME'], gethostname(), php_uname('n'), or the value + * 'localhost.localdomain'. + * + * @see PHPMailer::$Helo + * + * @var string + */ + public $Hostname = ''; + + /** + * An ID to be used in the Message-ID header. + * If empty, a unique id will be generated. + * You can set your own, but it must be in the format "", + * as defined in RFC5322 section 3.6.4 or it will be ignored. + * + * @see https://www.rfc-editor.org/rfc/rfc5322#section-3.6.4 + * + * @var string + */ + public $MessageID = ''; + + /** + * The message Date to be used in the Date header. + * If empty, the current date will be added. + * + * @var string + */ + public $MessageDate = ''; + + /** + * SMTP hosts. + * Either a single hostname or multiple semicolon-delimited hostnames. + * You can also specify a different port + * for each host by using this format: [hostname:port] + * (e.g. "smtp1.example.com:25;smtp2.example.com"). + * You can also specify encryption type, for example: + * (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465"). + * Hosts will be tried in order. + * + * @var string + */ + public $Host = 'localhost'; + + /** + * The default SMTP server port. + * + * @var int + */ + public $Port = 25; + + /** + * The SMTP HELO/EHLO name used for the SMTP connection. + * Default is $Hostname. If $Hostname is empty, PHPMailer attempts to find + * one with the same method described above for $Hostname. + * + * @see PHPMailer::$Hostname + * + * @var string + */ + public $Helo = ''; + + /** + * What kind of encryption to use on the SMTP connection. + * Options: '', static::ENCRYPTION_STARTTLS, or static::ENCRYPTION_SMTPS. + * + * @var string + */ + public $SMTPSecure = ''; + + /** + * Whether to enable TLS encryption automatically if a server supports it, + * even if `SMTPSecure` is not set to 'tls'. + * Be aware that in PHP >= 5.6 this requires that the server's certificates are valid. + * + * @var bool + */ + public $SMTPAutoTLS = true; + + /** + * Whether to use SMTP authentication. + * Uses the Username and Password properties. + * + * @see PHPMailer::$Username + * @see PHPMailer::$Password + * + * @var bool + */ + public $SMTPAuth = false; + + /** + * Options array passed to stream_context_create when connecting via SMTP. + * + * @var array + */ + public $SMTPOptions = []; + + /** + * SMTP username. + * + * @var string + */ + public $Username = ''; + + /** + * SMTP password. + * + * @var string + */ + public $Password = ''; + + /** + * SMTP authentication type. Options are CRAM-MD5, LOGIN, PLAIN, XOAUTH2. + * If not specified, the first one from that list that the server supports will be selected. + * + * @var string + */ + public $AuthType = ''; + + /** + * SMTP SMTPXClient command attributes + * + * @var array + */ + protected $SMTPXClient = []; + + /** + * An implementation of the PHPMailer OAuthTokenProvider interface. + * + * @var OAuthTokenProvider + */ + protected $oauth; + + /** + * The SMTP server timeout in seconds. + * Default of 5 minutes (300sec) is from RFC2821 section 4.5.3.2. + * + * @var int + */ + public $Timeout = 300; + + /** + * Comma separated list of DSN notifications + * 'NEVER' under no circumstances a DSN must be returned to the sender. + * If you use NEVER all other notifications will be ignored. + * 'SUCCESS' will notify you when your mail has arrived at its destination. + * 'FAILURE' will arrive if an error occurred during delivery. + * 'DELAY' will notify you if there is an unusual delay in delivery, but the actual + * delivery's outcome (success or failure) is not yet decided. + * + * @see https://www.rfc-editor.org/rfc/rfc3461.html#section-4.1 for more information about NOTIFY + */ + public $dsn = ''; + + /** + * SMTP class debug output mode. + * Debug output level. + * Options: + * @see SMTP::DEBUG_OFF: No output + * @see SMTP::DEBUG_CLIENT: Client messages + * @see SMTP::DEBUG_SERVER: Client and server messages + * @see SMTP::DEBUG_CONNECTION: As SERVER plus connection status + * @see SMTP::DEBUG_LOWLEVEL: Noisy, low-level data output, rarely needed + * + * @see SMTP::$do_debug + * + * @var int + */ + public $SMTPDebug = 0; + + /** + * How to handle debug output. + * Options: + * * `echo` Output plain-text as-is, appropriate for CLI + * * `html` Output escaped, line breaks converted to `
`, appropriate for browser output + * * `error_log` Output to error log as configured in php.ini + * By default PHPMailer will use `echo` if run from a `cli` or `cli-server` SAPI, `html` otherwise. + * Alternatively, you can provide a callable expecting two params: a message string and the debug level: + * + * ```php + * $mail->Debugoutput = function($str, $level) {echo "debug level $level; message: $str";}; + * ``` + * + * Alternatively, you can pass in an instance of a PSR-3 compatible logger, though only `debug` + * level output is used: + * + * ```php + * $mail->Debugoutput = new myPsr3Logger; + * ``` + * + * @see SMTP::$Debugoutput + * + * @var string|callable|\Psr\Log\LoggerInterface + */ + public $Debugoutput = 'echo'; + + /** + * Whether to keep the SMTP connection open after each message. + * If this is set to true then the connection will remain open after a send, + * and closing the connection will require an explicit call to smtpClose(). + * It's a good idea to use this if you are sending multiple messages as it reduces overhead. + * See the mailing list example for how to use it. + * + * @var bool + */ + public $SMTPKeepAlive = false; + + /** + * Whether to split multiple to addresses into multiple messages + * or send them all in one message. + * Only supported in `mail` and `sendmail` transports, not in SMTP. + * + * @var bool + * + * @deprecated 6.0.0 PHPMailer isn't a mailing list manager! + */ + public $SingleTo = false; + + /** + * Storage for addresses when SingleTo is enabled. + * + * @var array + */ + protected $SingleToArray = []; + + /** + * Whether to generate VERP addresses on send. + * Only applicable when sending via SMTP. + * + * @see https://en.wikipedia.org/wiki/Variable_envelope_return_path + * @see https://www.postfix.org/VERP_README.html Postfix VERP info + * + * @var bool + */ + public $do_verp = false; + + /** + * Whether to allow sending messages with an empty body. + * + * @var bool + */ + public $AllowEmpty = false; + + /** + * DKIM selector. + * + * @var string + */ + public $DKIM_selector = ''; + + /** + * DKIM Identity. + * Usually the email address used as the source of the email. + * + * @var string + */ + public $DKIM_identity = ''; + + /** + * DKIM passphrase. + * Used if your key is encrypted. + * + * @var string + */ + public $DKIM_passphrase = ''; + + /** + * DKIM signing domain name. + * + * @example 'example.com' + * + * @var string + */ + public $DKIM_domain = ''; + + /** + * DKIM Copy header field values for diagnostic use. + * + * @var bool + */ + public $DKIM_copyHeaderFields = true; + + /** + * DKIM Extra signing headers. + * + * @example ['List-Unsubscribe', 'List-Help'] + * + * @var array + */ + public $DKIM_extraHeaders = []; + + /** + * DKIM private key file path. + * + * @var string + */ + public $DKIM_private = ''; + + /** + * DKIM private key string. + * + * If set, takes precedence over `$DKIM_private`. + * + * @var string + */ + public $DKIM_private_string = ''; + + /** + * Callback Action function name. + * + * The function that handles the result of the send email action. + * It is called out by send() for each email sent. + * + * Value can be any php callable: https://www.php.net/is_callable + * + * Parameters: + * bool $result result of the send action + * array $to email addresses of the recipients + * array $cc cc email addresses + * array $bcc bcc email addresses + * string $subject the subject + * string $body the email body + * string $from email address of sender + * string $extra extra information of possible use + * 'smtp_transaction_id' => last smtp transaction id + * + * @var callable|callable-string + */ + public $action_function = ''; + + /** + * What to put in the X-Mailer header. + * Options: An empty string for PHPMailer default, whitespace/null for none, or a string to use. + * + * @var string|null + */ + public $XMailer = ''; + + /** + * Which validator to use by default when validating email addresses. + * May be a callable to inject your own validator, but there are several built-in validators. + * The default validator uses PHP's FILTER_VALIDATE_EMAIL filter_var option. + * + * If CharSet is UTF8, the validator is left at the default value, + * and you send to addresses that use non-ASCII local parts, then + * PHPMailer automatically changes to the 'eai' validator. + * + * @see PHPMailer::validateAddress() + * + * @var string|callable + */ + public static $validator = 'php'; + + /** + * An instance of the SMTP sender class. + * + * @var SMTP + */ + protected $smtp; + + /** + * The array of 'to' names and addresses. + * + * @var array + */ + protected $to = []; + + /** + * The array of 'cc' names and addresses. + * + * @var array + */ + protected $cc = []; + + /** + * The array of 'bcc' names and addresses. + * + * @var array + */ + protected $bcc = []; + + /** + * The array of reply-to names and addresses. + * + * @var array + */ + protected $ReplyTo = []; + + /** + * An array of all kinds of addresses. + * Includes all of $to, $cc, $bcc. + * + * @see PHPMailer::$to + * @see PHPMailer::$cc + * @see PHPMailer::$bcc + * + * @var array + */ + protected $all_recipients = []; + + /** + * An array of names and addresses queued for validation. + * In send(), valid and non duplicate entries are moved to $all_recipients + * and one of $to, $cc, or $bcc. + * This array is used only for addresses with IDN. + * + * @see PHPMailer::$to + * @see PHPMailer::$cc + * @see PHPMailer::$bcc + * @see PHPMailer::$all_recipients + * + * @var array + */ + protected $RecipientsQueue = []; + + /** + * An array of reply-to names and addresses queued for validation. + * In send(), valid and non duplicate entries are moved to $ReplyTo. + * This array is used only for addresses with IDN. + * + * @see PHPMailer::$ReplyTo + * + * @var array + */ + protected $ReplyToQueue = []; + + /** + * Whether the need for SMTPUTF8 has been detected. Set by + * preSend() if necessary. + * + * @var bool + */ + public $UseSMTPUTF8 = false; + + /** + * The array of attachments. + * + * @var array + */ + protected $attachment = []; + + /** + * The array of custom headers. + * + * @var array + */ + protected $CustomHeader = []; + + /** + * The most recent Message-ID (including angular brackets). + * + * @var string + */ + protected $lastMessageID = ''; + + /** + * The message's MIME type. + * + * @var string + */ + protected $message_type = ''; + + /** + * The array of MIME boundary strings. + * + * @var array + */ + protected $boundary = []; + + /** + * The array of available text strings for the current language. + * + * @var array + */ + protected static $language = []; + + /** + * The number of errors encountered. + * + * @var int + */ + protected $error_count = 0; + + /** + * The S/MIME certificate file path. + * + * @var string + */ + protected $sign_cert_file = ''; + + /** + * The S/MIME key file path. + * + * @var string + */ + protected $sign_key_file = ''; + + /** + * The optional S/MIME extra certificates ("CA Chain") file path. + * + * @var string + */ + protected $sign_extracerts_file = ''; + + /** + * The S/MIME password for the key. + * Used only if the key is encrypted. + * + * @var string + */ + protected $sign_key_pass = ''; + + /** + * Whether to throw exceptions for errors. + * + * @var bool + */ + protected $exceptions = false; + + /** + * Unique ID used for message ID and boundaries. + * + * @var string + */ + protected $uniqueid = ''; + + /** + * The PHPMailer Version number. + * + * @var string + */ + const VERSION = '7.0.1'; + + /** + * Error severity: message only, continue processing. + * + * @var int + */ + const STOP_MESSAGE = 0; + + /** + * Error severity: message, likely ok to continue processing. + * + * @var int + */ + const STOP_CONTINUE = 1; + + /** + * Error severity: message, plus full stop, critical error reached. + * + * @var int + */ + const STOP_CRITICAL = 2; + + /** + * The SMTP standard CRLF line break. + * If you want to change line break format, change static::$LE, not this. + */ + const CRLF = "\r\n"; + + /** + * "Folding White Space" a white space string used for line folding. + */ + const FWS = ' '; + + /** + * SMTP RFC standard line ending; Carriage Return, Line Feed. + * + * @var string + */ + protected static $LE = self::CRLF; + + /** + * The maximum line length supported by mail(). + * + * Background: mail() will sometimes corrupt messages + * with headers longer than 65 chars, see #818. + * + * @var int + */ + const MAIL_MAX_LINE_LENGTH = 63; + + /** + * The maximum line length allowed by RFC 2822 section 2.1.1. + * + * @var int + */ + const MAX_LINE_LENGTH = 998; + + /** + * The lower maximum line length allowed by RFC 2822 section 2.1.1. + * This length does NOT include the line break + * 76 means that lines will be 77 or 78 chars depending on whether + * the line break format is LF or CRLF; both are valid. + * + * @var int + */ + const STD_LINE_LENGTH = 76; + + /** + * Constructor. + * + * @param bool $exceptions Should we throw external exceptions? + */ + public function __construct($exceptions = null) + { + if (null !== $exceptions) { + $this->exceptions = (bool) $exceptions; + } + //Pick an appropriate debug output format automatically + $this->Debugoutput = (strpos(PHP_SAPI, 'cli') !== false ? 'echo' : 'html'); + } + + /** + * Destructor. + */ + public function __destruct() + { + //Close any open SMTP connection nicely + $this->smtpClose(); + } + + /** + * Call mail() in a safe_mode-aware fashion. + * Also, unless sendmail_path points to sendmail (or something that + * claims to be sendmail), don't pass params (not a perfect fix, + * but it will do). + * + * @param string $to To + * @param string $subject Subject + * @param string $body Message Body + * @param string $header Additional Header(s) + * @param string|null $params Params + * + * @return bool + */ + private function mailPassthru($to, $subject, $body, $header, $params) + { + //Check overloading of mail function to avoid double-encoding + // phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.mbstring_func_overloadDeprecatedRemoved + if ((int)ini_get('mbstring.func_overload') & 1) { + $subject = $this->secureHeader($subject); + } else { + $subject = $this->encodeHeader($this->secureHeader($subject)); + } + //Calling mail() with null params breaks + $this->edebug('Sending with mail()'); + $this->edebug('Sendmail path: ' . ini_get('sendmail_path')); + $this->edebug("Envelope sender: {$this->Sender}"); + $this->edebug("To: {$to}"); + $this->edebug("Subject: {$subject}"); + $this->edebug("Headers: {$header}"); + if (!$this->UseSendmailOptions || null === $params) { + $result = @mail($to, $subject, $body, $header); + } else { + $this->edebug("Additional params: {$params}"); + $result = @mail($to, $subject, $body, $header, $params); + } + $this->edebug('Result: ' . ($result ? 'true' : 'false')); + return $result; + } + + /** + * Output debugging info via a user-defined method. + * Only generates output if debug output is enabled. + * + * @see PHPMailer::$Debugoutput + * @see PHPMailer::$SMTPDebug + * + * @param string $str + */ + protected function edebug($str) + { + if ($this->SMTPDebug <= 0) { + return; + } + //Is this a PSR-3 logger? + if ($this->Debugoutput instanceof \Psr\Log\LoggerInterface) { + $this->Debugoutput->debug(rtrim($str, "\r\n")); + + return; + } + //Avoid clash with built-in function names + if (is_callable($this->Debugoutput) && !in_array($this->Debugoutput, ['error_log', 'html', 'echo'])) { + call_user_func($this->Debugoutput, $str, $this->SMTPDebug); + + return; + } + switch ($this->Debugoutput) { + case 'error_log': + //Don't output, just log + /** @noinspection ForgottenDebugOutputInspection */ + error_log($str); + break; + case 'html': + //Cleans up output a bit for a better looking, HTML-safe output + echo htmlentities( + preg_replace('/[\r\n]+/', '', $str), + ENT_QUOTES, + 'UTF-8' + ), "
\n"; + break; + case 'echo': + default: + //Normalize line breaks + $str = preg_replace('/\r\n|\r/m', "\n", $str); + echo gmdate('Y-m-d H:i:s'), + "\t", + //Trim trailing space + trim( + //Indent for readability, except for trailing break + str_replace( + "\n", + "\n \t ", + trim($str) + ) + ), + "\n"; + } + } + + /** + * Sets message type to HTML or plain. + * + * @param bool $isHtml True for HTML mode + */ + public function isHTML($isHtml = true) + { + if ($isHtml) { + $this->ContentType = static::CONTENT_TYPE_TEXT_HTML; + } else { + $this->ContentType = static::CONTENT_TYPE_PLAINTEXT; + } + } + + /** + * Send messages using SMTP. + */ + public function isSMTP() + { + $this->Mailer = 'smtp'; + } + + /** + * Send messages using PHP's mail() function. + */ + public function isMail() + { + $this->Mailer = 'mail'; + } + + /** + * Send messages using $Sendmail. + */ + public function isSendmail() + { + $ini_sendmail_path = ini_get('sendmail_path'); + + if (false === stripos($ini_sendmail_path, 'sendmail')) { + $this->Sendmail = '/usr/sbin/sendmail'; + } else { + $this->Sendmail = $ini_sendmail_path; + } + $this->Mailer = 'sendmail'; + } + + /** + * Send messages using qmail. + */ + public function isQmail() + { + $ini_sendmail_path = ini_get('sendmail_path'); + + if (false === stripos($ini_sendmail_path, 'qmail')) { + $this->Sendmail = '/var/qmail/bin/qmail-inject'; + } else { + $this->Sendmail = $ini_sendmail_path; + } + $this->Mailer = 'qmail'; + } + + /** + * Add a "To" address. + * + * @param string $address The email address to send to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addAddress($address, $name = '') + { + return $this->addOrEnqueueAnAddress('to', $address, $name); + } + + /** + * Add a "CC" address. + * + * @param string $address The email address to send to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addCC($address, $name = '') + { + return $this->addOrEnqueueAnAddress('cc', $address, $name); + } + + /** + * Add a "BCC" address. + * + * @param string $address The email address to send to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addBCC($address, $name = '') + { + return $this->addOrEnqueueAnAddress('bcc', $address, $name); + } + + /** + * Add a "Reply-To" address. + * + * @param string $address The email address to reply to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + public function addReplyTo($address, $name = '') + { + return $this->addOrEnqueueAnAddress('Reply-To', $address, $name); + } + + /** + * Add an address to one of the recipient arrays or to the ReplyTo array. Because PHPMailer + * can't validate addresses with an IDN without knowing the PHPMailer::$CharSet (that can still + * be modified after calling this function), addition of such addresses is delayed until send(). + * Addresses that have been added already return false, but do not throw exceptions. + * + * @param string $kind One of 'to', 'cc', 'bcc', or 'Reply-To' + * @param string $address The email address + * @param string $name An optional username associated with the address + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + protected function addOrEnqueueAnAddress($kind, $address, $name) + { + $pos = false; + if ($address !== null) { + $address = trim($address); + $pos = strrpos($address, '@'); + } + if (false === $pos) { + //At-sign is missing. + $error_message = sprintf( + '%s (%s): %s', + self::lang('invalid_address'), + $kind, + $address + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + if ($name !== null && is_string($name)) { + $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim + } else { + $name = ''; + } + $params = [$kind, $address, $name]; + //Enqueue addresses with IDN until we know the PHPMailer::$CharSet. + //Domain is assumed to be whatever is after the last @ symbol in the address + if ($this->has8bitChars(substr($address, ++$pos))) { + if (static::idnSupported()) { + if ('Reply-To' !== $kind) { + if (!array_key_exists($address, $this->RecipientsQueue)) { + $this->RecipientsQueue[$address] = $params; + + return true; + } + } elseif (!array_key_exists($address, $this->ReplyToQueue)) { + $this->ReplyToQueue[$address] = $params; + + return true; + } + } + //We have an 8-bit domain, but we are missing the necessary extensions to support it + //Or we are already sending to this address + return false; + } + + //Immediately add standard addresses without IDN. + return call_user_func_array([$this, 'addAnAddress'], $params); + } + + /** + * Set the boundaries to use for delimiting MIME parts. + * If you override this, ensure you set all 3 boundaries to unique values. + * The default boundaries include a "=_" sequence which cannot occur in quoted-printable bodies, + * as suggested by https://www.rfc-editor.org/rfc/rfc2045#section-6.7 + * + * @return void + */ + public function setBoundaries() + { + $this->uniqueid = $this->generateId(); + $this->boundary[1] = 'b1=_' . $this->uniqueid; + $this->boundary[2] = 'b2=_' . $this->uniqueid; + $this->boundary[3] = 'b3=_' . $this->uniqueid; + } + + /** + * Add an address to one of the recipient arrays or to the ReplyTo array. + * Addresses that have been added already return false, but do not throw exceptions. + * + * @param string $kind One of 'to', 'cc', 'bcc', or 'ReplyTo' + * @param string $address The email address to send, resp. to reply to + * @param string $name + * + * @throws Exception + * + * @return bool true on success, false if address already used or invalid in some way + */ + protected function addAnAddress($kind, $address, $name = '') + { + if ( + self::$validator === 'php' && + ((bool) preg_match('/[\x80-\xFF]/', $address)) + ) { + //The caller has not altered the validator and is sending to an address + //with UTF-8, so assume that they want UTF-8 support instead of failing + $this->CharSet = self::CHARSET_UTF8; + self::$validator = 'eai'; + } + if (!in_array($kind, ['to', 'cc', 'bcc', 'Reply-To'])) { + $error_message = sprintf( + '%s: %s', + self::lang('Invalid recipient kind'), + $kind + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + if (!static::validateAddress($address)) { + $error_message = sprintf( + '%s (%s): %s', + self::lang('invalid_address'), + $kind, + $address + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + if ('Reply-To' !== $kind) { + if (!array_key_exists(strtolower($address), $this->all_recipients)) { + $this->{$kind}[] = [$address, $name]; + $this->all_recipients[strtolower($address)] = true; + + return true; + } + } else { + foreach ($this->ReplyTo as $replyTo) { + if (0 === strcasecmp($replyTo[0], $address)) { + return false; + } + } + $this->ReplyTo[] = [$address, $name]; + + return true; + } + return false; + } + + /** + * Parse and validate a string containing one or more RFC822-style comma-separated email addresses + * of the form "display name
" into an array of name/address pairs. + * Uses the imap_rfc822_parse_adrlist function if the IMAP extension is available. + * Note that quotes in the name part are removed. + * + * @see https://www.andrew.cmu.edu/user/agreen1/testing/mrbs/web/Mail/RFC822.php A more careful implementation + * + * @param string $addrstr The address list string + * @param null $useimap Unused. Argument has been deprecated in PHPMailer 6.11.0. + * Previously this argument determined whether to use + * the IMAP extension to parse the list and accepted a boolean value. + * @param string $charset The charset to use when decoding the address list string. + * + * @return array + */ + public static function parseAddresses($addrstr, $useimap = null, $charset = self::CHARSET_ISO88591) + { + if ($useimap !== null) { + trigger_error(self::lang('deprecated_argument') . '$useimap', E_USER_DEPRECATED); + } + $addresses = []; + if (function_exists('imap_rfc822_parse_adrlist')) { + //Use this built-in parser if it's available + // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.imap_rfc822_parse_adrlistRemoved -- wrapped in function_exists() + $list = imap_rfc822_parse_adrlist($addrstr, ''); + // Clear any potential IMAP errors to get rid of notices being thrown at end of script. + // phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.imap_errorsRemoved -- wrapped in function_exists() + imap_errors(); + foreach ($list as $address) { + if ( + '.SYNTAX-ERROR.' !== $address->host && + static::validateAddress($address->mailbox . '@' . $address->host) + ) { + //Decode the name part if it's present and maybe encoded + if ( + property_exists($address, 'personal') + && is_string($address->personal) + && $address->personal !== '' + ) { + $address->personal = static::decodeHeader($address->personal, $charset); + } + + $addresses[] = [ + 'name' => (property_exists($address, 'personal') ? $address->personal : ''), + 'address' => $address->mailbox . '@' . $address->host, + ]; + } + } + } else { + //Use this simpler parser + $addresses = static::parseSimplerAddresses($addrstr, $charset); + } + + return $addresses; + } + + /** + * Parse a string containing one or more RFC822-style comma-separated email addresses + * with the form "display name
" into an array of name/address pairs. + * Uses a simpler parser that does not require the IMAP extension but doesnt support + * the full RFC822 spec. For full RFC822 support, use the PHP IMAP extension. + * + * @param string $addrstr The address list string + * @param string $charset The charset to use when decoding the address list string. + * + * @return array + */ + protected static function parseSimplerAddresses($addrstr, $charset) + { + // Emit a runtime notice to recommend using the IMAP extension for full RFC822 parsing + trigger_error(self::lang('imap_recommended'), E_USER_NOTICE); + + $addresses = []; + $list = explode(',', $addrstr); + foreach ($list as $address) { + $address = trim($address); + //Is there a separate name part? + if (strpos($address, '<') === false) { + //No separate name, just use the whole thing + if (static::validateAddress($address)) { + $addresses[] = [ + 'name' => '', + 'address' => $address, + ]; + } + } else { + $parsed = static::parseEmailString($address); + $email = $parsed['email']; + if (static::validateAddress($email)) { + $name = static::decodeHeader($parsed['name'], $charset); + $addresses[] = [ + //Remove any surrounding quotes and spaces from the name + 'name' => trim($name, '\'" '), + 'address' => $email, + ]; + } + } + } + + return $addresses; + } + + /** + * Parse a string containing an email address with an optional name + * and divide it into a name and email address. + * + * @param string $input The email with name. + * + * @return array{name: string, email: string} + */ + private static function parseEmailString($input) + { + $input = trim((string)$input); + + if ($input === '') { + return ['name' => '', 'email' => '']; + } + + $pattern = '/^\s*(?:(?:"([^"]*)"|\'([^\']*)\'|([^<]*?))\s*)?<\s*([^>]+)\s*>\s*$/'; + if (preg_match($pattern, $input, $matches)) { + $name = ''; + // Double quotes including special scenarios. + if (isset($matches[1]) && $matches[1] !== '') { + $name = $matches[1]; + // Single quotes including special scenarios. + } elseif (isset($matches[2]) && $matches[2] !== '') { + $name = $matches[2]; + // Simplest scenario, name and email are in the format "Name ". + } elseif (isset($matches[3])) { + $name = trim($matches[3]); + } + + return ['name' => $name, 'email' => trim($matches[4])]; + } + + return ['name' => '', 'email' => $input]; + } + + /** + * Set the From and FromName properties. + * + * @param string $address + * @param string $name + * @param bool $auto Whether to also set the Sender address, defaults to true + * + * @throws Exception + * + * @return bool + */ + public function setFrom($address, $name = '', $auto = true) + { + if (is_null($name)) { + //Helps avoid a deprecation warning in the preg_replace() below + $name = ''; + } + $address = trim((string)$address); + $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim + //Don't validate now addresses with IDN. Will be done in send(). + $pos = strrpos($address, '@'); + if ( + (false === $pos) + || ((!$this->has8bitChars(substr($address, ++$pos)) || !static::idnSupported()) + && !static::validateAddress($address)) + ) { + $error_message = sprintf( + '%s (From): %s', + self::lang('invalid_address'), + $address + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + $this->From = $address; + $this->FromName = $name; + if ($auto && empty($this->Sender)) { + $this->Sender = $address; + } + + return true; + } + + /** + * Return the Message-ID header of the last email. + * Technically this is the value from the last time the headers were created, + * but it's also the message ID of the last sent message except in + * pathological cases. + * + * @return string + */ + public function getLastMessageID() + { + return $this->lastMessageID; + } + + /** + * Check that a string looks like an email address. + * Validation patterns supported: + * * `auto` Pick best pattern automatically; + * * `pcre8` Use the squiloople.com pattern, requires PCRE > 8.0; + * * `pcre` Use old PCRE implementation; + * * `php` Use PHP built-in FILTER_VALIDATE_EMAIL; + * * `html5` Use the pattern given by the HTML5 spec for 'email' type form input elements. + * * `eai` Use a pattern similar to the HTML5 spec for 'email' and to firefox, extended to support EAI (RFC6530). + * * `noregex` Don't use a regex: super fast, really dumb. + * Alternatively you may pass in a callable to inject your own validator, for example: + * + * ```php + * PHPMailer::validateAddress('user@example.com', function($address) { + * return (strpos($address, '@') !== false); + * }); + * ``` + * + * You can also set the PHPMailer::$validator static to a callable, allowing built-in methods to use your validator. + * + * @param string $address The email address to check + * @param string|callable $patternselect Which pattern to use + * + * @return bool + */ + public static function validateAddress($address, $patternselect = null) + { + if (null === $patternselect) { + $patternselect = static::$validator; + } + //Don't allow strings as callables, see SECURITY.md and CVE-2021-3603 + if (is_callable($patternselect) && !is_string($patternselect)) { + return call_user_func($patternselect, $address); + } + //Reject line breaks in addresses; it's valid RFC5322, but not RFC5321 + if (strpos($address, "\n") !== false || strpos($address, "\r") !== false) { + return false; + } + switch ($patternselect) { + case 'pcre': //Kept for BC + case 'pcre8': + /* + * A more complex and more permissive version of the RFC5322 regex on which FILTER_VALIDATE_EMAIL + * is based. + * In addition to the addresses allowed by filter_var, also permits: + * * dotless domains: `a@b` + * * comments: `1234 @ local(blah) .machine .example` + * * quoted elements: `'"test blah"@example.org'` + * * numeric TLDs: `a@b.123` + * * unbracketed IPv4 literals: `a@192.168.0.1` + * * IPv6 literals: 'first.last@[IPv6:a1::]' + * Not all of these will necessarily work for sending! + * + * @copyright 2009-2010 Michael Rushton + * Feel free to use and redistribute this code. But please keep this copyright notice. + */ + return (bool) preg_match( + '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)' . + '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)' . + '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)' . + '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*' . + '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)' . + '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}' . + '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:' . + '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}' . + '|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD', + $address + ); + case 'html5': + /* + * This is the pattern used in the HTML5 spec for validation of 'email' type form input elements. + * + * @see https://html.spec.whatwg.org/#e-mail-state-(type=email) + */ + return (bool) preg_match( + '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}' . + '[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/sD', + $address + ); + case 'eai': + /* + * This is the pattern used in the HTML5 spec for validation of 'email' type + * form input elements (as above), modified to accept Unicode email addresses. + * This is also more lenient than Firefox' html5 spec, in order to make the regex faster. + * 'eai' is an acronym for Email Address Internationalization. + * This validator is selected automatically if you attempt to use recipient addresses + * that contain Unicode characters in the local part. + * + * @see https://html.spec.whatwg.org/#e-mail-state-(type=email) + * @see https://en.wikipedia.org/wiki/International_email + */ + return (bool) preg_match( + '/^[-\p{L}\p{N}\p{M}.!#$%&\'*+\/=?^_`{|}~]+@[\p{L}\p{N}\p{M}](?:[\p{L}\p{N}\p{M}-]{0,61}' . + '[\p{L}\p{N}\p{M}])?(?:\.[\p{L}\p{N}\p{M}]' . + '(?:[-\p{L}\p{N}\p{M}]{0,61}[\p{L}\p{N}\p{M}])?)*$/usD', + $address + ); + case 'php': + default: + return filter_var($address, FILTER_VALIDATE_EMAIL) !== false; + } + } + + /** + * Tells whether IDNs (Internationalized Domain Names) are supported or not. This requires the + * `intl` and `mbstring` PHP extensions. + * + * @return bool `true` if required functions for IDN support are present + */ + public static function idnSupported() + { + return function_exists('idn_to_ascii') && function_exists('mb_convert_encoding'); + } + + /** + * Converts IDN in given email address to its ASCII form, also known as punycode, if possible. + * Important: Address must be passed in same encoding as currently set in PHPMailer::$CharSet. + * This function silently returns unmodified address if: + * - No conversion is necessary (i.e. domain name is not an IDN, or is already in ASCII form) + * - Conversion to punycode is impossible (e.g. required PHP functions are not available) + * or fails for any reason (e.g. domain contains characters not allowed in an IDN). + * + * @see PHPMailer::$CharSet + * + * @param string $address The email address to convert + * + * @return string The encoded address in ASCII form + */ + public function punyencodeAddress($address) + { + //Verify we have required functions, CharSet, and at-sign. + $pos = strrpos($address, '@'); + if ( + !empty($this->CharSet) && + false !== $pos && + static::idnSupported() + ) { + $domain = substr($address, ++$pos); + //Verify CharSet string is a valid one, and domain properly encoded in this CharSet. + if ($this->has8bitChars($domain) && @mb_check_encoding($domain, $this->CharSet)) { + //Convert the domain from whatever charset it's in to UTF-8 + $domain = mb_convert_encoding($domain, self::CHARSET_UTF8, $this->CharSet); + //Ignore IDE complaints about this line - method signature changed in PHP 5.4 + $errorcode = 0; + if (defined('INTL_IDNA_VARIANT_UTS46')) { + //Use the current punycode standard (appeared in PHP 7.2) + $punycode = idn_to_ascii( + $domain, + \IDNA_DEFAULT | \IDNA_USE_STD3_RULES | \IDNA_CHECK_BIDI | + \IDNA_CHECK_CONTEXTJ | \IDNA_NONTRANSITIONAL_TO_ASCII, + \INTL_IDNA_VARIANT_UTS46 + ); + } elseif (defined('INTL_IDNA_VARIANT_2003')) { + //Fall back to this old, deprecated/removed encoding + // phpcs:ignore PHPCompatibility.Constants.RemovedConstants.intl_idna_variant_2003DeprecatedRemoved + $punycode = idn_to_ascii($domain, $errorcode, \INTL_IDNA_VARIANT_2003); + } else { + //Fall back to a default we don't know about + // phpcs:ignore PHPCompatibility.ParameterValues.NewIDNVariantDefault.NotSet + $punycode = idn_to_ascii($domain, $errorcode); + } + if (false !== $punycode) { + return substr($address, 0, $pos) . $punycode; + } + } + } + + return $address; + } + + /** + * Create a message and send it. + * Uses the sending method specified by $Mailer. + * + * @throws Exception + * + * @return bool false on error - See the ErrorInfo property for details of the error + */ + public function send() + { + try { + if (!$this->preSend()) { + return false; + } + + return $this->postSend(); + } catch (Exception $exc) { + $this->mailHeader = ''; + $this->setError($exc->getMessage()); + if ($this->exceptions) { + throw $exc; + } + + return false; + } + } + + /** + * Prepare a message for sending. + * + * @throws Exception + * + * @return bool + */ + public function preSend() + { + if ( + 'smtp' === $this->Mailer + || ('mail' === $this->Mailer && (\PHP_VERSION_ID >= 80000 || stripos(PHP_OS, 'WIN') === 0)) + ) { + //SMTP mandates RFC-compliant line endings + //and it's also used with mail() on Windows + static::setLE(self::CRLF); + } else { + //Maintain backward compatibility with legacy Linux command line mailers + static::setLE(PHP_EOL); + } + //Check for buggy PHP versions that add a header with an incorrect line break + if ( + 'mail' === $this->Mailer + && ((\PHP_VERSION_ID >= 70000 && \PHP_VERSION_ID < 70017) + || (\PHP_VERSION_ID >= 70100 && \PHP_VERSION_ID < 70103)) + && ini_get('mail.add_x_header') === '1' + && stripos(PHP_OS, 'WIN') === 0 + ) { + trigger_error(self::lang('buggy_php'), E_USER_WARNING); + } + + try { + $this->error_count = 0; //Reset errors + $this->mailHeader = ''; + + //The code below tries to support full use of Unicode, + //while remaining compatible with legacy SMTP servers to + //the greatest degree possible: If the message uses + //Unicode in the local parts of any addresses, it is sent + //using SMTPUTF8. If not, it it sent using + //punycode-encoded domains and plain SMTP. + if ( + static::CHARSET_UTF8 === strtolower($this->CharSet) && + ($this->anyAddressHasUnicodeLocalPart($this->RecipientsQueue) || + $this->anyAddressHasUnicodeLocalPart(array_keys($this->all_recipients)) || + $this->anyAddressHasUnicodeLocalPart($this->ReplyToQueue) || + $this->addressHasUnicodeLocalPart($this->From)) + ) { + $this->UseSMTPUTF8 = true; + } + //Dequeue recipient and Reply-To addresses with IDN + foreach (array_merge($this->RecipientsQueue, $this->ReplyToQueue) as $params) { + if (!$this->UseSMTPUTF8) { + $params[1] = $this->punyencodeAddress($params[1]); + } + call_user_func_array([$this, 'addAnAddress'], $params); + } + if (count($this->to) + count($this->cc) + count($this->bcc) < 1) { + throw new Exception(self::lang('provide_address'), self::STOP_CRITICAL); + } + + //Validate From, Sender, and ConfirmReadingTo addresses + foreach (['From', 'Sender', 'ConfirmReadingTo'] as $address_kind) { + if ($this->{$address_kind} === null) { + $this->{$address_kind} = ''; + continue; + } + $this->{$address_kind} = trim($this->{$address_kind}); + if (empty($this->{$address_kind})) { + continue; + } + $this->{$address_kind} = $this->punyencodeAddress($this->{$address_kind}); + if (!static::validateAddress($this->{$address_kind})) { + $error_message = sprintf( + '%s (%s): %s', + self::lang('invalid_address'), + $address_kind, + $this->{$address_kind} + ); + $this->setError($error_message); + $this->edebug($error_message); + if ($this->exceptions) { + throw new Exception($error_message); + } + + return false; + } + } + + //Set whether the message is multipart/alternative + if ($this->alternativeExists()) { + $this->ContentType = static::CONTENT_TYPE_MULTIPART_ALTERNATIVE; + } + + $this->setMessageType(); + //Refuse to send an empty message unless we are specifically allowing it + if (!$this->AllowEmpty && empty($this->Body)) { + throw new Exception(self::lang('empty_message'), self::STOP_CRITICAL); + } + + //Trim subject consistently + $this->Subject = trim($this->Subject); + //Create body before headers in case body makes changes to headers (e.g. altering transfer encoding) + $this->MIMEHeader = ''; + $this->MIMEBody = $this->createBody(); + //createBody may have added some headers, so retain them + $tempheaders = $this->MIMEHeader; + $this->MIMEHeader = $this->createHeader(); + $this->MIMEHeader .= $tempheaders; + + //To capture the complete message when using mail(), create + //an extra header list which createHeader() doesn't fold in + if ('mail' === $this->Mailer) { + if (count($this->to) > 0) { + $this->mailHeader .= $this->addrAppend('To', $this->to); + } else { + $this->mailHeader .= $this->headerLine('To', 'undisclosed-recipients:;'); + } + $this->mailHeader .= $this->headerLine( + 'Subject', + $this->encodeHeader($this->secureHeader($this->Subject)) + ); + } + + //Sign with DKIM if enabled + if ( + !empty($this->DKIM_domain) + && !empty($this->DKIM_selector) + && (!empty($this->DKIM_private_string) + || (!empty($this->DKIM_private) + && static::isPermittedPath($this->DKIM_private) + && file_exists($this->DKIM_private) + ) + ) + ) { + $header_dkim = $this->DKIM_Add( + $this->MIMEHeader . $this->mailHeader, + $this->encodeHeader($this->secureHeader($this->Subject)), + $this->MIMEBody + ); + $this->MIMEHeader = static::stripTrailingWSP($this->MIMEHeader) . static::$LE . + static::normalizeBreaks($header_dkim) . static::$LE; + } + + return true; + } catch (Exception $exc) { + $this->setError($exc->getMessage()); + if ($this->exceptions) { + throw $exc; + } + + return false; + } + } + + /** + * Actually send a message via the selected mechanism. + * + * @throws Exception + * + * @return bool + */ + public function postSend() + { + try { + //Choose the mailer and send through it + switch ($this->Mailer) { + case 'sendmail': + case 'qmail': + return $this->sendmailSend($this->MIMEHeader, $this->MIMEBody); + case 'smtp': + return $this->smtpSend($this->MIMEHeader, $this->MIMEBody); + case 'mail': + return $this->mailSend($this->MIMEHeader, $this->MIMEBody); + default: + $sendMethod = $this->Mailer . 'Send'; + if (method_exists($this, $sendMethod)) { + return $this->{$sendMethod}($this->MIMEHeader, $this->MIMEBody); + } + + return $this->mailSend($this->MIMEHeader, $this->MIMEBody); + } + } catch (Exception $exc) { + $this->setError($exc->getMessage()); + $this->edebug($exc->getMessage()); + if ($this->Mailer === 'smtp' && $this->SMTPKeepAlive == true && $this->smtp->connected()) { + $this->smtp->reset(); + } + if ($this->exceptions) { + throw $exc; + } + } + + return false; + } + + /** + * Send mail using the $Sendmail program. + * + * @see PHPMailer::$Sendmail + * + * @param string $header The message headers + * @param string $body The message body + * + * @throws Exception + * + * @return bool + */ + protected function sendmailSend($header, $body) + { + if ($this->Mailer === 'qmail') { + $this->edebug('Sending with qmail'); + } else { + $this->edebug('Sending with sendmail'); + } + $header = static::stripTrailingWSP($header) . static::$LE . static::$LE; + //This sets the SMTP envelope sender which gets turned into a return-path header by the receiver + //A space after `-f` is optional, but there is a long history of its presence + //causing problems, so we don't use one + //Exim docs: https://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_command_line.html + //Sendmail docs: https://www.sendmail.org/~ca/email/man/sendmail.html + //Example problem: https://www.drupal.org/node/1057954 + + //PHP 5.6 workaround + $sendmail_from_value = ini_get('sendmail_from'); + if (empty($this->Sender) && !empty($sendmail_from_value)) { + //PHP config has a sender address we can use + $this->Sender = ini_get('sendmail_from'); + } + //CVE-2016-10033, CVE-2016-10045: Don't pass -f if characters will be escaped. + if (!empty($this->Sender) && static::validateAddress($this->Sender) && self::isShellSafe($this->Sender)) { + if ($this->Mailer === 'qmail') { + $sendmailFmt = '%s -f%s'; + } else { + $sendmailFmt = '%s -oi -f%s -t'; + } + } elseif ($this->Mailer === 'qmail') { + $sendmailFmt = '%s'; + } else { + //Allow sendmail to choose a default envelope sender. It may + //seem preferable to force it to use the From header as with + //SMTP, but that introduces new problems (see + //), and + //it has historically worked this way. + $sendmailFmt = '%s -oi -t'; + } + + $sendmail = sprintf($sendmailFmt, escapeshellcmd($this->Sendmail), $this->Sender); + $this->edebug('Sendmail path: ' . $this->Sendmail); + $this->edebug('Sendmail command: ' . $sendmail); + $this->edebug('Envelope sender: ' . $this->Sender); + $this->edebug("Headers: {$header}"); + + if ($this->SingleTo) { + foreach ($this->SingleToArray as $toAddr) { + $mail = @popen($sendmail, 'w'); + if (!$mail) { + throw new Exception(self::lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + $this->edebug("To: {$toAddr}"); + fwrite($mail, 'To: ' . $toAddr . "\n"); + fwrite($mail, $header); + fwrite($mail, $body); + $result = pclose($mail); + $addrinfo = static::parseAddresses($toAddr, null, $this->CharSet); + foreach ($addrinfo as $addr) { + $this->doCallback( + ($result === 0), + [[$addr['address'], $addr['name']]], + $this->cc, + $this->bcc, + $this->Subject, + $body, + $this->From, + [] + ); + } + $this->edebug("Result: " . ($result === 0 ? 'true' : 'false')); + if (0 !== $result) { + throw new Exception(self::lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + } + } else { + $mail = @popen($sendmail, 'w'); + if (!$mail) { + throw new Exception(self::lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + fwrite($mail, $header); + fwrite($mail, $body); + $result = pclose($mail); + $this->doCallback( + ($result === 0), + $this->to, + $this->cc, + $this->bcc, + $this->Subject, + $body, + $this->From, + [] + ); + $this->edebug("Result: " . ($result === 0 ? 'true' : 'false')); + if (0 !== $result) { + throw new Exception(self::lang('execute') . $this->Sendmail, self::STOP_CRITICAL); + } + } + + return true; + } + + /** + * Fix CVE-2016-10033 and CVE-2016-10045 by disallowing potentially unsafe shell characters. + * Note that escapeshellarg and escapeshellcmd are inadequate for our purposes, especially on Windows. + * + * @see https://github.com/PHPMailer/PHPMailer/issues/924 CVE-2016-10045 bug report + * + * @param string $string The string to be validated + * + * @return bool + */ + protected static function isShellSafe($string) + { + //It's not possible to use shell commands safely (which includes the mail() function) without escapeshellarg, + //but some hosting providers disable it, creating a security problem that we don't want to have to deal with, + //so we don't. + if (!function_exists('escapeshellarg') || !function_exists('escapeshellcmd')) { + return false; + } + + if ( + escapeshellcmd($string) !== $string + || !in_array(escapeshellarg($string), ["'$string'", "\"$string\""]) + ) { + return false; + } + + $length = strlen($string); + + for ($i = 0; $i < $length; ++$i) { + $c = $string[$i]; + + //All other characters have a special meaning in at least one common shell, including = and +. + //Full stop (.) has a special meaning in cmd.exe, but its impact should be negligible here. + //Note that this does permit non-Latin alphanumeric characters based on the current locale. + if (!ctype_alnum($c) && strpos('@_-.', $c) === false) { + return false; + } + } + + return true; + } + + /** + * Check whether a file path is of a permitted type. + * Used to reject URLs and phar files from functions that access local file paths, + * such as addAttachment. + * + * @param string $path A relative or absolute path to a file + * + * @return bool + */ + protected static function isPermittedPath($path) + { + //Matches scheme definition from https://www.rfc-editor.org/rfc/rfc3986#section-3.1 + return !preg_match('#^[a-z][a-z\d+.-]*://#i', $path); + } + + /** + * Check whether a file path is safe, accessible, and readable. + * + * @param string $path A relative or absolute path to a file + * + * @return bool + */ + protected static function fileIsAccessible($path) + { + if (!static::isPermittedPath($path)) { + return false; + } + $readable = is_file($path); + //If not a UNC path (expected to start with \\), check read permission, see #2069 + if (strpos($path, '\\\\') !== 0) { + $readable = $readable && is_readable($path); + } + return $readable; + } + + /** + * Send mail using the PHP mail() function. + * + * @see https://www.php.net/manual/en/book.mail.php + * + * @param string $header The message headers + * @param string $body The message body + * + * @throws Exception + * + * @return bool + */ + protected function mailSend($header, $body) + { + $header = static::stripTrailingWSP($header) . static::$LE . static::$LE; + + $toArr = []; + foreach ($this->to as $toaddr) { + $toArr[] = $this->addrFormat($toaddr); + } + $to = trim(implode(', ', $toArr)); + + //If there are no To-addresses (e.g. when sending only to BCC-addresses) + //the following should be added to get a correct DKIM-signature. + //Compare with $this->preSend() + if ($to === '') { + $to = 'undisclosed-recipients:;'; + } + + $params = null; + //This sets the SMTP envelope sender which gets turned into a return-path header by the receiver + //A space after `-f` is optional, but there is a long history of its presence + //causing problems, so we don't use one + //Exim docs: https://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_exim_command_line.html + //Sendmail docs: https://www.sendmail.org/~ca/email/man/sendmail.html + //Example problem: https://www.drupal.org/node/1057954 + //CVE-2016-10033, CVE-2016-10045: Don't pass -f if characters will be escaped. + + //PHP 5.6 workaround + $sendmail_from_value = ini_get('sendmail_from'); + if (empty($this->Sender) && !empty($sendmail_from_value)) { + //PHP config has a sender address we can use + $this->Sender = ini_get('sendmail_from'); + } + if (!empty($this->Sender) && static::validateAddress($this->Sender)) { + if (self::isShellSafe($this->Sender)) { + $params = sprintf('-f%s', $this->Sender); + } + $old_from = ini_get('sendmail_from'); + ini_set('sendmail_from', $this->Sender); + } + $result = false; + if ($this->SingleTo && count($toArr) > 1) { + foreach ($toArr as $toAddr) { + $result = $this->mailPassthru($toAddr, $this->Subject, $body, $header, $params); + $addrinfo = static::parseAddresses($toAddr, null, $this->CharSet); + foreach ($addrinfo as $addr) { + $this->doCallback( + $result, + [[$addr['address'], $addr['name']]], + $this->cc, + $this->bcc, + $this->Subject, + $body, + $this->From, + [] + ); + } + } + } else { + $result = $this->mailPassthru($to, $this->Subject, $body, $header, $params); + $this->doCallback($result, $this->to, $this->cc, $this->bcc, $this->Subject, $body, $this->From, []); + } + if (isset($old_from)) { + ini_set('sendmail_from', $old_from); + } + if (!$result) { + throw new Exception(self::lang('instantiate'), self::STOP_CRITICAL); + } + + return true; + } + + /** + * Get an instance to use for SMTP operations. + * Override this function to load your own SMTP implementation, + * or set one with setSMTPInstance. + * + * @return SMTP + */ + public function getSMTPInstance() + { + if (!is_object($this->smtp)) { + $this->smtp = new SMTP(); + } + + return $this->smtp; + } + + /** + * Provide an instance to use for SMTP operations. + * + * @return SMTP + */ + public function setSMTPInstance(SMTP $smtp) + { + $this->smtp = $smtp; + + return $this->smtp; + } + + /** + * Provide SMTP XCLIENT attributes + * + * @param string $name Attribute name + * @param ?string $value Attribute value + * + * @return bool + */ + public function setSMTPXclientAttribute($name, $value) + { + if (!in_array($name, SMTP::$xclient_allowed_attributes)) { + return false; + } + if (isset($this->SMTPXClient[$name]) && $value === null) { + unset($this->SMTPXClient[$name]); + } elseif ($value !== null) { + $this->SMTPXClient[$name] = $value; + } + + return true; + } + + /** + * Get SMTP XCLIENT attributes + * + * @return array + */ + public function getSMTPXclientAttributes() + { + return $this->SMTPXClient; + } + + /** + * Send mail via SMTP. + * Returns false if there is a bad MAIL FROM, RCPT, or DATA input. + * + * @see PHPMailer::setSMTPInstance() to use a different class. + * + * @uses \PHPMailer\PHPMailer\SMTP + * + * @param string $header The message headers + * @param string $body The message body + * + * @throws Exception + * + * @return bool + */ + protected function smtpSend($header, $body) + { + $header = static::stripTrailingWSP($header) . static::$LE . static::$LE; + $bad_rcpt = []; + if (!$this->smtpConnect($this->SMTPOptions)) { + throw new Exception(self::lang('smtp_connect_failed'), self::STOP_CRITICAL); + } + //If we have recipient addresses that need Unicode support, + //but the server doesn't support it, stop here + if ($this->UseSMTPUTF8 && !$this->smtp->getServerExt('SMTPUTF8')) { + throw new Exception(self::lang('no_smtputf8'), self::STOP_CRITICAL); + } + //Sender already validated in preSend() + if ('' === $this->Sender) { + $smtp_from = $this->From; + } else { + $smtp_from = $this->Sender; + } + if (count($this->SMTPXClient)) { + $this->smtp->xclient($this->SMTPXClient); + } + if (!$this->smtp->mail($smtp_from)) { + $this->setError(self::lang('from_failed') . $smtp_from . ' : ' . implode(',', $this->smtp->getError())); + throw new Exception($this->ErrorInfo, self::STOP_CRITICAL); + } + + $callbacks = []; + //Attempt to send to all recipients + foreach ([$this->to, $this->cc, $this->bcc] as $togroup) { + foreach ($togroup as $to) { + if (!$this->smtp->recipient($to[0], $this->dsn)) { + $error = $this->smtp->getError(); + $bad_rcpt[] = ['to' => $to[0], 'error' => $error['detail']]; + $isSent = false; + } else { + $isSent = true; + } + + $callbacks[] = ['issent' => $isSent, 'to' => $to[0], 'name' => $to[1]]; + } + } + + //Only send the DATA command if we have viable recipients + if ((count($this->all_recipients) > count($bad_rcpt)) && !$this->smtp->data($header . $body)) { + throw new Exception(self::lang('data_not_accepted'), self::STOP_CRITICAL); + } + + $smtp_transaction_id = $this->smtp->getLastTransactionID(); + + if ($this->SMTPKeepAlive) { + $this->smtp->reset(); + } else { + $this->smtp->quit(); + $this->smtp->close(); + } + + foreach ($callbacks as $cb) { + $this->doCallback( + $cb['issent'], + [[$cb['to'], $cb['name']]], + [], + [], + $this->Subject, + $body, + $this->From, + ['smtp_transaction_id' => $smtp_transaction_id] + ); + } + + //Create error message for any bad addresses + if (count($bad_rcpt) > 0) { + $errstr = ''; + foreach ($bad_rcpt as $bad) { + $errstr .= $bad['to'] . ': ' . $bad['error']; + } + throw new Exception(self::lang('recipients_failed') . $errstr, self::STOP_CONTINUE); + } + + return true; + } + + /** + * Initiate a connection to an SMTP server. + * Returns false if the operation failed. + * + * @param array $options An array of options compatible with stream_context_create() + * + * @throws Exception + * + * @uses \PHPMailer\PHPMailer\SMTP + * + * @return bool + */ + public function smtpConnect($options = null) + { + if (null === $this->smtp) { + $this->smtp = $this->getSMTPInstance(); + } + + //If no options are provided, use whatever is set in the instance + if (null === $options) { + $options = $this->SMTPOptions; + } + + //Already connected? + if ($this->smtp->connected()) { + return true; + } + + $this->smtp->setTimeout($this->Timeout); + $this->smtp->setDebugLevel($this->SMTPDebug); + $this->smtp->setDebugOutput($this->Debugoutput); + $this->smtp->setVerp($this->do_verp); + $this->smtp->setSMTPUTF8($this->UseSMTPUTF8); + if ($this->Host === null) { + $this->Host = 'localhost'; + } + $hosts = explode(';', $this->Host); + $lastexception = null; + + foreach ($hosts as $hostentry) { + $hostinfo = []; + if ( + !preg_match( + '/^(?:(ssl|tls):\/\/)?(.+?)(?::(\d+))?$/', + trim($hostentry), + $hostinfo + ) + ) { + $this->edebug(self::lang('invalid_hostentry') . ' ' . trim($hostentry)); + //Not a valid host entry + continue; + } + //$hostinfo[1]: optional ssl or tls prefix + //$hostinfo[2]: the hostname + //$hostinfo[3]: optional port number + //The host string prefix can temporarily override the current setting for SMTPSecure + //If it's not specified, the default value is used + + //Check the host name is a valid name or IP address before trying to use it + if (!static::isValidHost($hostinfo[2])) { + $this->edebug(self::lang('invalid_host') . ' ' . $hostinfo[2]); + continue; + } + $prefix = ''; + $secure = $this->SMTPSecure; + $tls = (static::ENCRYPTION_STARTTLS === $this->SMTPSecure); + if ('ssl' === $hostinfo[1] || ('' === $hostinfo[1] && static::ENCRYPTION_SMTPS === $this->SMTPSecure)) { + $prefix = 'ssl://'; + $tls = false; //Can't have SSL and TLS at the same time + $secure = static::ENCRYPTION_SMTPS; + } elseif ('tls' === $hostinfo[1]) { + $tls = true; + //TLS doesn't use a prefix + $secure = static::ENCRYPTION_STARTTLS; + } + //Do we need the OpenSSL extension? + $sslext = defined('OPENSSL_ALGO_SHA256'); + if (static::ENCRYPTION_STARTTLS === $secure || static::ENCRYPTION_SMTPS === $secure) { + //Check for an OpenSSL constant rather than using extension_loaded, which is sometimes disabled + if (!$sslext) { + throw new Exception(self::lang('extension_missing') . 'openssl', self::STOP_CRITICAL); + } + } + $host = $hostinfo[2]; + $port = $this->Port; + if ( + array_key_exists(3, $hostinfo) && + is_numeric($hostinfo[3]) && + $hostinfo[3] > 0 && + $hostinfo[3] < 65536 + ) { + $port = (int) $hostinfo[3]; + } + if ($this->smtp->connect($prefix . $host, $port, $this->Timeout, $options)) { + try { + if ($this->Helo) { + $hello = $this->Helo; + } else { + $hello = $this->serverHostname(); + } + $this->smtp->hello($hello); + //Automatically enable TLS encryption if: + //* it's not disabled + //* we are not connecting to localhost + //* we have openssl extension + //* we are not already using SSL + //* the server offers STARTTLS + if ( + $this->SMTPAutoTLS && + $this->Host !== 'localhost' && + $sslext && + $secure !== 'ssl' && + $this->smtp->getServerExt('STARTTLS') + ) { + $tls = true; + } + if ($tls) { + if (!$this->smtp->startTLS()) { + $message = $this->getSmtpErrorMessage('connect_host'); + throw new Exception($message); + } + //We must resend EHLO after TLS negotiation + $this->smtp->hello($hello); + } + if ( + $this->SMTPAuth && !$this->smtp->authenticate( + $this->Username, + $this->Password, + $this->AuthType, + $this->oauth + ) + ) { + throw new Exception(self::lang('authenticate')); + } + + return true; + } catch (Exception $exc) { + $lastexception = $exc; + $this->edebug($exc->getMessage()); + //We must have connected, but then failed TLS or Auth, so close connection nicely + $this->smtp->quit(); + } + } + } + //If we get here, all connection attempts have failed, so close connection hard + $this->smtp->close(); + //As we've caught all exceptions, just report whatever the last one was + if ($this->exceptions && null !== $lastexception) { + throw $lastexception; + } + if ($this->exceptions) { + // no exception was thrown, likely $this->smtp->connect() failed + $message = $this->getSmtpErrorMessage('connect_host'); + throw new Exception($message); + } + + return false; + } + + /** + * Close the active SMTP session if one exists. + */ + public function smtpClose() + { + if ((null !== $this->smtp) && $this->smtp->connected()) { + $this->smtp->quit(); + $this->smtp->close(); + } + } + + /** + * Set the language for error messages. + * The default language is English. + * + * @param string $langcode ISO 639-1 2-character language code (e.g. French is "fr") + * Optionally, the language code can be enhanced with a 4-character + * script annotation and/or a 2-character country annotation. + * @param string $lang_path Path to the language file directory, with trailing separator (slash) + * Do not set this from user input! + * + * @return bool Returns true if the requested language was loaded, false otherwise. + */ + public static function setLanguage($langcode = 'en', $lang_path = '') + { + //Backwards compatibility for renamed language codes + $renamed_langcodes = [ + 'br' => 'pt_br', + 'cz' => 'cs', + 'dk' => 'da', + 'no' => 'nb', + 'se' => 'sv', + 'rs' => 'sr', + 'tg' => 'tl', + 'am' => 'hy', + ]; + + if (array_key_exists($langcode, $renamed_langcodes)) { + $langcode = $renamed_langcodes[$langcode]; + } + + //Define full set of translatable strings in English + $PHPMAILER_LANG = [ + 'authenticate' => 'SMTP Error: Could not authenticate.', + 'buggy_php' => 'Your version of PHP is affected by a bug that may result in corrupted messages.' . + ' To fix it, switch to sending using SMTP, disable the mail.add_x_header option in' . + ' your php.ini, switch to MacOS or Linux, or upgrade your PHP to version 7.0.17+ or 7.1.3+.', + 'connect_host' => 'SMTP Error: Could not connect to SMTP host.', + 'data_not_accepted' => 'SMTP Error: data not accepted.', + 'empty_message' => 'Message body empty', + 'encoding' => 'Unknown encoding: ', + 'execute' => 'Could not execute: ', + 'extension_missing' => 'Extension missing: ', + 'file_access' => 'Could not access file: ', + 'file_open' => 'File Error: Could not open file: ', + 'from_failed' => 'The following From address failed: ', + 'instantiate' => 'Could not instantiate mail function.', + 'invalid_address' => 'Invalid address: ', + 'invalid_header' => 'Invalid header name or value', + 'invalid_hostentry' => 'Invalid hostentry: ', + 'invalid_host' => 'Invalid host: ', + 'mailer_not_supported' => ' mailer is not supported.', + 'provide_address' => 'You must provide at least one recipient email address.', + 'recipients_failed' => 'SMTP Error: The following recipients failed: ', + 'signing' => 'Signing Error: ', + 'smtp_code' => 'SMTP code: ', + 'smtp_code_ex' => 'Additional SMTP info: ', + 'smtp_connect_failed' => 'SMTP connect() failed.', + 'smtp_detail' => 'Detail: ', + 'smtp_error' => 'SMTP server error: ', + 'variable_set' => 'Cannot set or reset variable: ', + 'no_smtputf8' => 'Server does not support SMTPUTF8 needed to send to Unicode addresses', + 'imap_recommended' => 'Using simplified address parser is not recommended. ' . + 'Install the PHP IMAP extension for full RFC822 parsing.', + 'deprecated_argument' => 'Deprecated Argument: ', + ]; + if (empty($lang_path)) { + //Calculate an absolute path so it can work if CWD is not here + $lang_path = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'language' . DIRECTORY_SEPARATOR; + } + + //Validate $langcode + $foundlang = true; + $langcode = strtolower($langcode); + if ( + !preg_match('/^(?P[a-z]{2})(?P + + + +
+
+
+

基金监控管理后台

+

管理基金代码和虚拟投资金额

+
+ + +
+
+
+ + +
+ +
+ +
+ + + + + +
+ + +
+
+

推荐基金管理

+ +
+
+ + + + + + + + + + + + + + + +
基金代码推荐IP推荐时间渠道金额状态操作
+
+ +
+ + +
+
+

基金配置管理

+ +
+ + +
+ + + + + + + + + + + + + +
基金代码基金名称所属渠道投资金额(元)操作
+
+
+ + +
+
+

操作日志

+ +
+ +
+ +
+
+ + +
+
+

基金净值变化

+
+ +
+
+ +
+
+
请选择基金查看净值变化
+
+
+ +
+
+
+ + +
+
+

邮箱设置

+
+ + +
+
+

SMTP服务器配置

+
+
+
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ +
+
+
+
+ + +
+
+

收件人管理

+
+
+
+
+ + +
+
+ +
+

现有收件人:

+
+ +
+
+
+
+
+
+ + +
+ + + + + + + \ No newline at end of file diff --git a/admin_api.php b/admin_api.php new file mode 100644 index 0000000..b12fe58 --- /dev/null +++ b/admin_api.php @@ -0,0 +1,1062 @@ +configFile)) { + $this->initConfig(); + } + + // 初始化操作日志文件(如果不存在) + if (!file_exists($this->operationFile)) { + $this->initOperationLog(); + } + + // 初始化基金名称文件(如果不存在) + if (!file_exists($this->fundNamesFile)) { + $this->initFundNames(); + } + + // 初始化推荐基金文件(如果不存在) + if (!file_exists($this->recommendedFundsFile)) { + $this->initRecommendedFunds(); + } + } + + /** + * 初始化配置文件 + */ + private function initConfig() { + $defaultConfig = [ + [ + "channel" => "0", + "fund_code" => "003766", + "investment" => 1000, + "name" => "汇添富医疗服务混合" + ], + [ + "channel" => "0", + "fund_code" => "004206", + "investment" => 1000, + "name" => "基金004206" + ], + [ + "channel" => "0", + "fund_code" => "019432", + "investment" => 1000, + "name" => "基金019432" + ], + [ + "channel" => "1", + "fund_code" => "003766", + "investment" => 1000, + "name" => "汇添富医疗服务混合" + ], + [ + "channel" => "1", + "fund_code" => "008327", + "investment" => 1000, + "name" => "基金008327" + ], + [ + "channel" => "2", + "fund_code" => "017811", + "investment" => 1000, + "name" => "基金017811" + ] + ]; + + FileManager::saveJsonFile($this->configFile, $defaultConfig); + } + + /** + * 初始化操作日志 + */ + private function initOperationLog() { + $initialLog = [ + 'operations' => [] + ]; + + FileManager::saveJsonFile($this->operationFile, $initialLog); + } + + /** + * 初始化推荐基金文件 + */ + private function initRecommendedFunds() { + $initialData = []; + FileManager::saveJsonFile($this->recommendedFundsFile, $initialData); + } + + /** + * 初始化基金名称文件 + */ + private function initFundNames() { + // 从配置中提取已有的基金名称作为初始数据 + $defaultFundNames = []; + $config = $this->loadConfig(); + + foreach ($config as $fund) { + if (isset($fund['fund_code']) && isset($fund['name']) && $fund['name'] !== "基金{$fund['fund_code']}") { + $defaultFundNames[$fund['fund_code']] = $fund['name']; + } + } + + // 添加一些常用基金名称 + $commonFunds = [ + '003766' => '汇添富医疗服务混合', + '110022' => '易方达消费行业股票', + '001714' => '工银文体产业股票', + '000241' => '中欧时代先锋股票', + '001475' => '易方达国防军工混合', + '161725' => '招商中证白酒指数', + '000689' => '前海开源新经济混合', + '001102' => '前海开源国家比较优势混合', + '001593' => '天弘创业板ETF联接', + '000971' => '高升沪深300指数增强' + ]; + + // 合并默认基金名称 + $fundNames = array_merge($defaultFundNames, $commonFunds); + + FileManager::saveJsonFile($this->fundNamesFile, $fundNames); + } + + /** + * 加载基金名称映射 + */ + private function loadFundNames() { + if (!file_exists($this->fundNamesFile)) { + $this->initFundNames(); + } + + return FileManager::loadJsonFile($this->fundNamesFile, []); + } + + /** + * 保存基金名称映射 + */ + private function saveFundNames($fundNames) { + $result = FileManager::saveJsonFile($this->fundNamesFile, $fundNames); + + if ($result === false) { + error_log('无法写入基金名称文件,请检查目录权限'); + return false; + } + + return true; + } + + /** + * 记录操作日志 + */ + private function logOperation($type, $fundCode, $channel = null, $investment = null, $details = '') { + $log = $this->loadOperationLog(); + + $operation = [ + 'id' => uniqid(), + 'type' => $type, // 'add', 'update', 'delete' + 'fund_code' => $fundCode, + 'channel' => $channel, + 'investment' => $investment, + 'details' => $details, + 'timestamp' => time(), + 'date' => date('Y-m-d H:i:s') + ]; + + $log['operations'][] = $operation; + + // 只保留最近100条操作记录 + if (count($log['operations']) > 100) { + $log['operations'] = array_slice($log['operations'], -100); + } + // 记录操作日志 + FileManager::saveJsonFile($this->operationFile, $log); + + return $operation; + } + + /** + * 加载操作日志 + */ + private function loadOperationLog() { + return FileManager::loadJsonFile($this->operationFile, ['operations' => []], [$this, 'initOperationLog']); + } + + /** + * 获取基金名称(优先从文件读取,不存在时从API获取并保存) + */ + public function getFundName($fundCode) { + try { + // 优先从文件中查找 + $fundNames = $this->loadFundNames(); + if (isset($fundNames[$fundCode])) { + return [ + 'success' => true, + 'name' => $fundNames[$fundCode] + ]; + } else { + // 文件中没有,尝试从API获取 + $fundName = $this->fetchFundNameFromAPI($fundCode); + if ($fundName) { + // 将新获取的基金名称保存到文件中 + $fundNames[$fundCode] = $fundName; + $this->saveFundNames($fundNames); + + return [ + 'success' => true, + 'name' => $fundName + ]; + } else { + // 如果API也获取失败,尝试从本地数据查找 + $config = $this->loadConfig(); + $fund = array_filter($config, function($item) use ($fundCode) { + return $item['fund_code'] == $fundCode; + }); + + $fund = reset($fund); + if ($fund && isset($fund['name'])) { + // 保存到文件中供以后使用 + $fundNames[$fundCode] = $fund['name']; + $this->saveFundNames($fundNames); + + return [ + 'success' => true, + 'name' => $fund['name'] + ]; + } else { + // 如果都没有,返回默认名称 + return [ + 'success' => true, + 'name' => "基金$fundCode" + ]; + } + } + } + } catch (Exception $e) { + return [ + 'success' => false, + 'message' => '获取基金名称失败: ' . $e->getMessage() + ]; + } + } + + /** + * 获取操作日志 + */ + public function getOperationLog($limit = 20) { + try { + $log = $this->loadOperationLog(); + $operations = $log['operations']; + + // 按时间倒序排列 + usort($operations, function($a, $b) { + return $b['timestamp'] - $a['timestamp']; + }); + + // 限制返回数量 + $operations = array_slice($operations, 0, $limit); + + return [ + 'success' => true, + 'data' => $operations + ]; + } catch (Exception $e) { + return [ + 'success' => false, + 'message' => '获取操作日志失败: ' . $e->getMessage() + ]; + } + } + + /** + * 加载基金配置 + */ + private function loadConfig() { + return FileManager::loadJsonFile($this->configFile, [], [$this, 'initConfig']); + } + + /** + * 保存基金配置 + */ + private function saveConfig($config) { + $result = FileManager::saveJsonFile($this->configFile, $config); + + if ($result === false) { + throw new Exception('无法写入配置文件,请检查目录权限'); + } + + return true; + } + + /** + * 获取所有基金配置 + */ + public function getFunds() { + try { + $config = $this->loadConfig(); + + return [ + 'success' => true, + 'data' => $config + ]; + } catch (Exception $e) { + return [ + 'success' => false, + 'message' => '获取基金配置失败: ' . $e->getMessage() + ]; + } + } + + /** + * 添加基金 + */ + public function addFund($fundData) { + try { + // 调试:记录接收到的数据 + error_log("addFund received: " . print_r($fundData, true)); + + $config = $this->loadConfig(); + + // 验证数据 + if (!isset($fundData['fund_code']) || trim($fundData['fund_code']) === '') { + return [ + 'success' => false, + 'message' => '基金代码不能为空' + ]; + } + + if (!isset($fundData['channel']) || trim($fundData['channel']) === '') { + return [ + 'success' => false, + 'message' => '渠道不能为空' + ]; + } + + $fundCode = trim($fundData['fund_code']); + $channel = trim($fundData['channel']); + + // 验证基金代码格式 + if (!preg_match('/^\d{6}$/', $fundCode)) { + return [ + 'success' => false, + 'message' => '基金代码必须是6位数字' + ]; + } + + // 检查是否已存在 + foreach ($config as $item) { + if ($item['fund_code'] === $fundCode && $item['channel'] === $channel) { + return [ + 'success' => false, + 'message' => '该渠道下已存在相同的基金代码' + ]; + } + } + + // 添加新基金 + // 获取基金名称 + $fundName = "基金{$fundCode}"; + $fundNames = [ + '003766' => '汇添富医疗服务混合', + '110022' => '易方达消费行业股票' + ]; + if (isset($fundNames[$fundCode])) { + $fundName = $fundNames[$fundCode]; + } + + $newFund = [ + 'channel' => $channel, + 'fund_code' => $fundCode, + 'investment' => isset($fundData['investment']) ? floatval($fundData['investment']) : 1000, + 'name' => $fundName + ]; + + $config[] = $newFund; + + if ($this->saveConfig($config)) { + // 记录操作日志 + $this->logOperation('add', $fundCode, $channel, $newFund['investment'], '添加基金'); + + return [ + 'success' => true, + 'message' => '基金添加成功' + ]; + } else { + return [ + 'success' => false, + 'message' => '保存配置失败' + ]; + } + } catch (Exception $e) { + return [ + 'success' => false, + 'message' => '添加基金失败: ' . $e->getMessage() + ]; + } + } + + /** + * 更新基金 + */ + public function updateFund($fundData) { + try { + // 调试:记录接收到的数据 + error_log("updateFund received: " . print_r($fundData, true)); + + $config = $this->loadConfig(); + $index = isset($fundData['index']) ? intval($fundData['index']) : -1; + + // 验证索引 + if ($index < 0 || !isset($config[$index])) { + return [ + 'success' => false, + 'message' => '基金不存在' + ]; + } + + // 验证数据 + if (!isset($fundData['fund_code']) || trim($fundData['fund_code']) === '') { + return [ + 'success' => false, + 'message' => '基金代码不能为空' + ]; + } + + if (!isset($fundData['channel']) || trim($fundData['channel']) === '') { + return [ + 'success' => false, + 'message' => '渠道不能为空' + ]; + } + + $fundCode = trim($fundData['fund_code']); + $channel = trim($fundData['channel']); + + // 获取旧数据用于日志 + $oldFund = $config[$index]; + + // 检查重复(排除自身) + foreach ($config as $i => $item) { + if ($i !== $index && $item['fund_code'] === $fundCode && $item['channel'] === $channel) { + return [ + 'success' => false, + 'message' => '该渠道下已存在相同的基金代码' + ]; + } + } + + // 更新基金信息 + $config[$index] = [ + 'channel' => $channel, + 'fund_code' => $fundCode, + 'investment' => isset($fundData['investment']) ? floatval($fundData['investment']) : 1000, + 'name' => $oldFund['name'] ?? "基金{$fundCode}" + ]; + + if ($this->saveConfig($config)) { + // 记录操作日志 + $details = sprintf('更新基金: 投资金额 %s -> %s', + $oldFund['investment'], + $config[$index]['investment'] + ); + $this->logOperation('update', $fundCode, $channel, $config[$index]['investment'], $details); + + return [ + 'success' => true, + 'message' => '基金更新成功' + ]; + } else { + return [ + 'success' => false, + 'message' => '保存配置失败' + ]; + } + } catch (Exception $e) { + return [ + 'success' => false, + 'message' => '更新基金失败: ' . $e->getMessage() + ]; + } + } + + /** + * 删除基金 + */ + public function deleteFund($index) { + try { + $config = $this->loadConfig(); + $index = intval($index); + + // 验证索引 + if (!isset($config[$index])) { + return [ + 'success' => false, + 'message' => '基金不存在' + ]; + } + + // 获取要删除的基金信息用于日志 + $deletedFund = $config[$index]; + + // 删除基金 + array_splice($config, $index, 1); + + if ($this->saveConfig($config)) { + // 记录操作日志 + $this->logOperation('delete', $deletedFund['fund_code'], $deletedFund['channel'], $deletedFund['investment'], '删除基金'); + + return [ + 'success' => true, + 'message' => '基金删除成功' + ]; + } else { + return [ + 'success' => false, + 'message' => '保存配置失败' + ]; + } + } catch (Exception $e) { + return [ + 'success' => false, + 'message' => '删除基金失败: ' . $e->getMessage() + ]; + } + } + + /** + * 获取基金名称列表(优先从文件读取,不存在时从API获取并保存) + */ + public function getFundNames() { + $fundCodes = $_GET['fund_codes'] ?? ''; + + if (empty($fundCodes)) { + return [ + 'success' => false, + 'message' => '基金代码不能为空' + ]; + } + + $codes = explode(',', $fundCodes); + $results = []; + $fundNames = $this->loadFundNames(); + + foreach ($codes as $code) { + $code = trim($code); + if (!empty($code)) { + // 先从文件中查找 + if (isset($fundNames[$code])) { + $results[$code] = $fundNames[$code]; + } else { + // 文件中没有,则从API获取 + $fundName = $this->fetchFundNameFromAPI($code); + if ($fundName) { + $results[$code] = $fundName; + // 将新获取的基金名称保存到文件中 + $fundNames[$code] = $fundName; + $this->saveFundNames($fundNames); + } else { + // 如果API也获取失败,使用默认名称 + $results[$code] = "基金$code"; + } + } + } + } + + return [ + 'success' => true, + 'data' => $results, + 'message' => '获取基金名称成功' + ]; + } + + /** + * 获取推荐基金列表 + */ + private function getRecommendedFunds() { + try { + $recommendedFunds = FileManager::loadJsonFile($this->recommendedFundsFile, []); + + // 按时间倒序排序 + usort($recommendedFunds, function($a, $b) { + return strtotime($b['timestamp']) - strtotime($a['timestamp']); + }); + + echo json_encode(['success' => true, 'data' => $recommendedFunds], JSON_UNESCAPED_UNICODE); + } catch (Exception $e) { + echo json_encode(['success' => false, 'message' => '获取推荐基金失败: ' . $e->getMessage()], JSON_UNESCAPED_UNICODE); + } + } + + /** + * 批准推荐基金 + */ + private function approveRecommendedFund() { + try { + $fundCode = isset($_GET['fund_code']) ? $_GET['fund_code'] : ''; + + if (empty($fundCode)) { + echo json_encode(['success' => false, 'message' => '基金代码不能为空'], JSON_UNESCAPED_UNICODE); + return; + } + + // 加载推荐基金数据 + $recommendedFunds = FileManager::loadJsonFile($this->recommendedFundsFile, []); + + // 查找并更新基金状态 + $found = false; + foreach ($recommendedFunds as &$fund) { + if ($fund['fund_code'] == $fundCode) { + $fund['status'] = 'approved'; + $found = true; + break; + } + } + + if (!$found) { + echo json_encode(['success' => false, 'message' => '未找到该推荐基金'], JSON_UNESCAPED_UNICODE); + return; + } + + // 保存更新后的数据 + FileManager::saveJsonFile($this->recommendedFundsFile, $recommendedFunds); + + // 添加到基金配置中 + $config = $this->loadConfig(); + $fundExists = false; + foreach ($config as $existingFund) { + if ($existingFund['fund_code'] == $fundCode && $existingFund['channel'] == '0') { + $fundExists = true; + break; + } + } + + if (!$fundExists) { + $newFund = [ + 'channel' => '2', // 2表示支付宝渠道 + 'fund_code' => $fundCode, + 'investment' => 1000, + 'name' => '基金' . $fundCode + ]; + $config[] = $newFund; + $this->saveConfig($config); + } + + // 记录操作日志 + $this->logOperation('approve_recommended_fund', ['fund_code' => $fundCode]); + + echo json_encode(['success' => true, 'message' => '基金批准成功'], JSON_UNESCAPED_UNICODE); + } catch (Exception $e) { + echo json_encode(['success' => false, 'message' => '批准基金失败: ' . $e->getMessage()], JSON_UNESCAPED_UNICODE); + } + } + + /** + * 删除推荐基金 + */ + private function deleteRecommendedFund() { + try { + $fundCode = isset($_GET['fund_code']) ? $_GET['fund_code'] : ''; + + if (empty($fundCode)) { + echo json_encode(['success' => false, 'message' => '基金代码不能为空'], JSON_UNESCAPED_UNICODE); + return; + } + + // 加载推荐基金数据 + $recommendedFunds = FileManager::loadJsonFile($this->recommendedFundsFile, []); + + // 过滤掉要删除的基金 + $filteredFunds = array_filter($recommendedFunds, function($fund) use ($fundCode) { + return $fund['fund_code'] != $fundCode; + }); + + // 保存过滤后的数据 + FileManager::saveJsonFile($this->recommendedFundsFile, array_values($filteredFunds)); + + // 记录操作日志 + $this->logOperation('delete_recommended_fund', ['fund_code' => $fundCode]); + + echo json_encode(['success' => true, 'message' => '基金删除成功'], JSON_UNESCAPED_UNICODE); + } catch (Exception $e) { + echo json_encode(['success' => false, 'message' => '删除基金失败: ' . $e->getMessage()], JSON_UNESCAPED_UNICODE); + } + } + + /** + * 从API获取基金名称(只在文件中不存在时调用) + */ + private function fetchFundNameFromAPI($fundCode) { + // 尝试多个API源 + $apiSources = [ + "https://fundgz.1234567.com.cn/js/{$fundCode}.js?rt=" . time(), + "https://api.doctorxiong.club/v1/fund/detail?code={$fundCode}" + ]; + + foreach ($apiSources as $apiUrl) { + try { + // 设置超时时间 + $context = stream_context_create([ + 'http' => [ + 'timeout' => 5, + 'header' => 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36' + ] + ]); + + $response = file_get_contents($apiUrl, false, $context); + + if ($response) { + // 处理不同API的响应格式 + if (strpos($apiUrl, 'fundgz.1234567.com.cn') !== false) { + // 处理JSONP格式 + if (preg_match('/jsonpgz\((.*)\)/', $response, $matches)) { + $data = json_decode($matches[1], true); + if (isset($data['name']) && !empty($data['name'])) { + return $data['name']; + } + } + } else if (strpos($apiUrl, 'doctorxiong.club') !== false) { + // 处理JSON格式 + $data = json_decode($response, true); + if (isset($data['data']['name']) && !empty($data['data']['name'])) { + return $data['data']['name']; + } + } + } + } catch (Exception $e) { + // 记录错误但继续尝试下一个API源 + error_log("获取基金{$fundCode}名称失败: " . $e->getMessage()); + continue; + } + } + + // 所有API都失败,返回false + return false; + } + + /** + * 处理API请求 + */ + public function handleRequest() { + // 处理OPTIONS请求 + $this->handleOptionsRequest(); + + // 解析请求参数 + $request = $this->parseRequest(); + $method = $request['method']; + $action = $request['action']; + $params = $request['params']; + + if ($method === 'GET') { + switch ($action) { + case 'get_funds': + $result = $this->getFunds(); + echo json_encode($result, JSON_UNESCAPED_UNICODE); + break; + + case 'get_operation_log': + $limit = isset($params['limit']) ? intval($params['limit']) : 20; + $result = $this->getOperationLog($limit); + echo json_encode($result, JSON_UNESCAPED_UNICODE); + break; + + case 'get_fund_name': + $fundCode = $params['fund_code'] ?? ''; + if ($fundCode) { + $result = $this->getFundName($fundCode); + echo json_encode($result, JSON_UNESCAPED_UNICODE); + } else { + echo json_encode(['success' => false, 'message' => '基金代码不能为空']); + } + break; + + case 'get_fund_names': + $result = $this->getFundNames(); + echo json_encode($result, JSON_UNESCAPED_UNICODE); + break; + case 'get_recommended_funds': + $this->getRecommendedFunds(); + break; + case 'approve_recommended_fund': + $this->approveRecommendedFund(); + break; + case 'delete_recommended_fund': + $this->deleteRecommendedFund(); + break; + case 'get_email_config': + $this->getEmailConfig(); + break; + + default: + http_response_code(404); + echo json_encode(['success' => false, 'message' => 'Endpoint not found']); + } + } elseif ($method === 'POST') { + // 如果之前没有成功解析POST数据,则再次尝试 + if (!isset($postData) || json_last_error() !== JSON_ERROR_NONE) { + // 获取POST数据 + $input = file_get_contents('php://input'); + $postData = json_decode($input, true); + + if (json_last_error() !== JSON_ERROR_NONE) { + http_response_code(400); + echo json_encode([ + 'success' => false, + 'message' => '无效的JSON数据: ' . json_last_error_msg(), + 'debug_input' => $input + ]); + return; + } + } + + switch ($action) { + case 'add_fund': + $result = $this->addFund($postData); + echo json_encode($result, JSON_UNESCAPED_UNICODE); + break; + + case 'update_fund': + $result = $this->updateFund($postData); + echo json_encode($result, JSON_UNESCAPED_UNICODE); + break; + + case 'delete_fund': + $result = $this->deleteFund($postData['index']); + echo json_encode($result, JSON_UNESCAPED_UNICODE); + break; + case 'update_email_config': + $this->updateEmailConfig($postData); + break; + case 'add_email_recipient': + $this->addEmailRecipient($postData); + break; + case 'delete_email_recipient': + $this->deleteEmailRecipient($postData); + break; + + default: + http_response_code(404); + echo json_encode(['success' => false, 'message' => 'Endpoint not found']); + } + } else { + http_response_code(405); + echo json_encode(['success' => false, 'message' => 'Method not allowed']); + } + } + + /** + * 获取邮箱配置 + */ + private function getEmailConfig() { + $emailConfigFile = 'data/email_config.json'; + + $emailConfig = FileManager::loadJsonFile($emailConfigFile, null); + if ($emailConfig !== null) { + echo json_encode([ + 'success' => true, + 'data' => $emailConfig + ]); + } else { + echo json_encode([ + 'success' => false, + 'message' => '邮箱配置文件不存在' + ]); + } + } + + /** + * 更新邮箱配置 + */ + private function updateEmailConfig($postData) { + $emailConfigFile = 'data/email_config.json'; + + // 验证必要参数 + $requiredParams = ['smtp_server', 'smtp_port', 'smtp_secure', 'username', 'password', 'from_email', 'from_name']; + foreach ($requiredParams as $param) { + if (!isset($postData[$param]) || empty(trim($postData[$param]))) { + echo json_encode([ + 'success' => false, + 'message' => "参数 {$param} 不能为空" + ]); + return; + } + } + + // 构建新的配置 + $newConfig = [ + 'smtp_server' => trim($postData['smtp_server']), + 'smtp_port' => intval($postData['smtp_port']), + 'smtp_secure' => trim($postData['smtp_secure']), + 'username' => trim($postData['username']), + 'password' => trim($postData['password']), + 'from_email' => trim($postData['from_email']), + 'from_name' => trim($postData['from_name']), + 'to_emails' => isset($postData['to_emails']) && is_array($postData['to_emails']) ? $postData['to_emails'] : [] + ]; + + // 保存配置 + if (FileManager::saveJsonFile($emailConfigFile, $newConfig)) { + // 记录操作日志 + $this->logOperation('更新邮箱配置', ['smtp_server' => $newConfig['smtp_server'], 'username' => $newConfig['username']]); + + echo json_encode([ + 'success' => true, + 'message' => '邮箱配置更新成功' + ]); + } else { + echo json_encode([ + 'success' => false, + 'message' => '邮箱配置更新失败' + ]); + } + } + + /** + * 添加邮箱收件人 + */ + private function addEmailRecipient($postData) { + $emailConfigFile = 'data/email_config.json'; + + if (!isset($postData['email']) || empty(trim($postData['email']))) { + echo json_encode([ + 'success' => false, + 'message' => '邮箱地址不能为空' + ]); + return; + } + + $newEmail = trim($postData['email']); + + // 验证邮箱格式 + if (!filter_var($newEmail, FILTER_VALIDATE_EMAIL)) { + echo json_encode([ + 'success' => false, + 'message' => '邮箱地址格式无效' + ]); + return; + } + + $emailConfig = FileManager::loadJsonFile($emailConfigFile, null); + if ($emailConfig !== null) { + // 检查邮箱是否已经存在 + if (in_array($newEmail, $emailConfig['to_emails'])) { + echo json_encode([ + 'success' => false, + 'message' => '邮箱地址已经存在' + ]); + return; + } + + // 添加新邮箱 + $emailConfig['to_emails'][] = $newEmail; + + // 保存配置 + if (FileManager::saveJsonFile($emailConfigFile, $emailConfig)) { + // 记录操作日志 + $this->logOperation('添加邮箱收件人', ['email' => $newEmail]); + + echo json_encode([ + 'success' => true, + 'message' => '邮箱收件人添加成功', + 'data' => $emailConfig['to_emails'] + ]); + } else { + echo json_encode([ + 'success' => false, + 'message' => '邮箱收件人添加失败' + ]); + } + } else { + echo json_encode([ + 'success' => false, + 'message' => '邮箱配置文件不存在' + ]); + } + } + + /** + * 删除邮箱收件人 + */ + private function deleteEmailRecipient($postData) { + $emailConfigFile = 'data/email_config.json'; + + if (!isset($postData['email']) || empty(trim($postData['email']))) { + echo json_encode([ + 'success' => false, + 'message' => '邮箱地址不能为空' + ]); + return; + } + + $deleteEmail = trim($postData['email']); + + $emailConfig = FileManager::loadJsonFile($emailConfigFile, null); + if ($emailConfig !== null) { + // 查找邮箱在数组中的位置 + $index = array_search($deleteEmail, $emailConfig['to_emails']); + if ($index === false) { + echo json_encode([ + 'success' => false, + 'message' => '未找到该邮箱地址' + ]); + return; + } + + // 删除邮箱 + unset($emailConfig['to_emails'][$index]); + // 重新索引数组 + $emailConfig['to_emails'] = array_values($emailConfig['to_emails']); + + // 保存配置 + if (FileManager::saveJsonFile($emailConfigFile, $emailConfig)) { + // 记录操作日志 + $this->logOperation('删除邮箱收件人', ['email' => $deleteEmail]); + + echo json_encode([ + 'success' => true, + 'message' => '邮箱收件人删除成功', + 'data' => $emailConfig['to_emails'] + ]); + } else { + echo json_encode([ + 'success' => false, + 'message' => '邮箱收件人删除失败' + ]); + } + } else { + echo json_encode([ + 'success' => false, + 'message' => '邮箱配置文件不存在' + ]); + } + } +} + +// 错误处理 +try { + $api = new FundAdminAPI(); + $api->handleRequest(); +} catch (Exception $e) { + http_response_code(500); + echo json_encode([ + 'success' => false, + 'message' => '服务器内部错误: ' . $e->getMessage() + ]); +} +?> \ No newline at end of file diff --git a/api.php b/api.php new file mode 100644 index 0000000..7438050 --- /dev/null +++ b/api.php @@ -0,0 +1,1341 @@ + [1, 2, 3, 4, 5], // 1-5代表周一到周五 + 'hour' => 14, + 'minute' => 30 + ]; + + // 邮件推送状态文件 + private $emailStatusFile = 'data/email_status.json'; + + public function __construct() { + // 确保数据目录存在 + FileManager::ensureDirExists('data'); + + // 初始化统计文件(如果不存在) + if (!file_exists($this->statsFile)) { + $this->initStats(); + } + + // 初始化配置文件(如果不存在) + if (!file_exists($this->configFile)) { + $this->initConfig(); + } + + // 初始化历史数据文件(如果不存在) + if (!file_exists($this->historyFile)) { + $this->initHistory(); + } + + // 初始化操作日志文件(如果不存在) + if (!file_exists($this->operationFile)) { + $this->initOperationLog(); + } + + // 初始化每日数据文件(如果不存在) + if (!file_exists($this->dailyDataFile)) { + $this->initDailyData(); + } + + // 初始化邮件状态文件(如果不存在) + if (!file_exists($this->emailStatusFile)) { + $this->initEmailStatus(); + } + + // 加载邮箱配置 + $this->loadEmailConfig(); + } + + /** + * 加载邮箱配置 + */ + private function loadEmailConfig() { + if (file_exists($this->emailConfigFile)) { + $this->emailConfig = json_decode(file_get_contents($this->emailConfigFile), true); + } else { + // 如果配置文件不存在,使用默认配置 + $this->initEmailConfig(); + } + } + + /** + * 初始化邮箱配置文件 + */ + private function initEmailConfig() { + $defaultEmailConfig = [ + 'smtp_server' => 'smtp.qq.com', + 'smtp_port' => 465, + 'smtp_secure' => 'ssl', + 'username' => '', + 'password' => '', + 'from_email' => '', + 'from_name' => '基金监控系统', + 'to_emails' => [] + ]; + + file_put_contents($this->emailConfigFile, json_encode($defaultEmailConfig, JSON_PRETTY_PRINT)); + $this->emailConfig = $defaultEmailConfig; + } + + /** + * 初始化统计数据 + */ + private function initStats() { + $initialStats = [ + 'total_visits' => 0, + 'today_visits' => 0, + 'unique_visitors' => 0, + 'today_unique_visitors' => 0, + 'last_reset' => date('Y-m-d'), + 'daily_stats' => [], + 'unique_ips' => [] + ]; + + file_put_contents($this->statsFile, json_encode($initialStats, JSON_PRETTY_PRINT)); + } + + /** + * 初始化配置文件 + */ + private function initConfig() { + $defaultConfig = [ + [ + "channel" => "0", + "fund_code" => "003766", + "investment" => 1000 + ], + [ + "channel" => "0", + "fund_code" => "004206", + "investment" => 1000 + ], + [ + "channel" => "0", + "fund_code" => "019432", + "investment" => 1000 + ], + [ + "channel" => "1", + "fund_code" => "003766", + "investment" => 1000 + ], + [ + "channel" => "1", + "fund_code" => "008327", + "investment" => 1000 + ], + [ + "channel" => "2", + "fund_code" => "017811", + "investment" => 1000 + ] + ]; + + file_put_contents($this->configFile, json_encode($defaultConfig, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)); + } + + /** + * 初始化历史数据 + */ + private function initHistory() { + $initialHistory = [ + 'last_update_date' => date('Y-m-d'), + 'yesterday_data' => [], + 'today_data' => [] + ]; + + file_put_contents($this->historyFile, json_encode($initialHistory, JSON_PRETTY_PRINT)); + } + + /** + * 初始化操作日志 + */ + private function initOperationLog() { + $initialLog = [ + 'operations' => [] + ]; + + FileManager::saveJsonFile($this->operationFile, $initialLog); + } + + /** + * 初始化每日数据 + */ + private function initDailyData() { + $initialDailyData = [ + 'last_update' => date('Y-m-d'), + 'funds' => [] + ]; + + FileManager::saveJsonFile($this->dailyDataFile, $initialDailyData); + } + + /** + * 初始化邮件状态文件 + */ + private function initEmailStatus() { + $initialStatus = [ + 'last_sent_date' => null, + 'last_sent_time' => null, + 'sent_count' => 0, + 'failed_count' => 0 + ]; + file_put_contents($this->emailStatusFile, json_encode($initialStatus, JSON_PRETTY_PRINT)); + } + + /** + * 读取SMTP服务器多行响应的私有方法 + * @param resource $socket Socket连接资源 + * @return string 完整的响应内容 + */ + private function readSmtpResponse($socket) { + $response = ''; + do { + $line = fgets($socket, 512); + $response .= $line; + } while (substr($line, 3, 1) == '-' && !feof($socket)); + return $response; + } + + /** + * 发送邮件 - 使用Socket直接连接SMTP服务器 + */ + private function sendEmail($subject, $body) { + $config = $this->emailConfig; + $toEmails = $config['to_emails']; + + // SMTP服务器配置 + $smtpServer = $config['smtp_server']; + $smtpPort = $config['smtp_port']; + $smtpSecure = $config['smtp_secure']; + $smtpUser = $config['username']; + $smtpPassword = $config['password']; + $fromName = $config['from_name']; + $fromEmail = $config['from_email']; + + // 发送邮件到所有收件人 + $success = true; + $errorLog = ""; + + foreach ($toEmails as $toEmail) { + // 创建Socket连接 + if ($smtpSecure == 'ssl') { + $socket = fsockopen("ssl://$smtpServer", $smtpPort, $errno, $errstr, 30); + } else { + $socket = fsockopen($smtpServer, $smtpPort, $errno, $errstr, 30); + } + + if (!$socket) { + $errorLog .= "Failed to connect to $smtpServer:$smtpPort. Error: $errstr ($errno)\n"; + $success = false; + continue; + } + + // 读取SMTP服务器响应 + $response = $this->readSmtpResponse($socket); + $errorLog .= "1. Connection: $response\n"; + + // 发送EHLO命令 + fputs($socket, "EHLO localhost\r\n"); + $response = $this->readSmtpResponse($socket); + $errorLog .= "2. EHLO: $response\n"; + + // 发送认证命令 + fputs($socket, "AUTH LOGIN\r\n"); + $response = $this->readSmtpResponse($socket); + $errorLog .= "3. AUTH LOGIN: $response\n"; + + // 发送用户名 + fputs($socket, base64_encode($smtpUser) . "\r\n"); + $response = $this->readSmtpResponse($socket); + $errorLog .= "4. Username: $response\n"; + + // 发送密码 + fputs($socket, base64_encode($smtpPassword) . "\r\n"); + $response = $this->readSmtpResponse($socket); + $errorLog .= "5. Password: $response\n"; + + // 发送MAIL FROM命令 + fputs($socket, "MAIL FROM: <$fromEmail>\r\n"); + $response = $this->readSmtpResponse($socket); + $errorLog .= "6. MAIL FROM: $response\n"; + + // 发送RCPT TO命令 + fputs($socket, "RCPT TO: <$toEmail>\r\n"); + $response = $this->readSmtpResponse($socket); + $errorLog .= "7. RCPT TO: $response\n"; + + // 发送DATA命令 + fputs($socket, "DATA\r\n"); + $response = $this->readSmtpResponse($socket); + $errorLog .= "8. DATA: $response\n"; + + // 发送邮件内容 + $emailContent = "Subject: $subject\r\n"; + $emailContent .= "From: $fromName <$fromEmail>\r\n"; + $emailContent .= "To: $toEmail\r\n"; + $emailContent .= "MIME-Version: 1.0\r\n"; + $emailContent .= "Content-Type: text/html; charset=UTF-8\r\n"; + $emailContent .= "\r\n"; + $emailContent .= $body; + $emailContent .= "\r\n.\r\n"; + + fputs($socket, $emailContent); + $dataResponse = $this->readSmtpResponse($socket); + $errorLog .= "9. Content sent: $dataResponse\n"; + + // 发送QUIT命令 + fputs($socket, "QUIT\r\n"); + $quitResponse = $this->readSmtpResponse($socket); + $errorLog .= "10. QUIT: $quitResponse\n"; + + // 关闭Socket连接 + fclose($socket); + + // 检查DATA命令的响应码是否为250(成功) + if (substr($dataResponse, 0, 3) != '250') { + $success = false; + } + } + + // 更新邮件状态 + $status = $this->loadEmailStatus(); + if ($success) { + $status['last_sent_date'] = date('Y-m-d'); + $status['last_sent_time'] = date('H:i:s'); + $status['sent_count']++; + } else { + $status['failed_count']++; + // 保存错误日志 + file_put_contents('email_error_log.txt', date('Y-m-d H:i:s') . "\n" . $errorLog . "\n\n", FILE_APPEND); + } + $this->saveEmailStatus($status); + + return $success; + } + + /** + * 加载邮件状态 + */ + private function loadEmailStatus() { + return FileManager::loadJsonFile($this->emailStatusFile, [], [$this, 'initEmailStatus']); + } + + /** + * 保存邮件状态 + */ + private function saveEmailStatus($status) { + FileManager::saveJsonFile($this->emailStatusFile, $status); + } + + /** + * 格式化基金数据为邮件内容 + */ + private function formatFundEmailContent($fundData) { + $content = "

基金情况推送

"; + $content .= "

推送时间:" . date('Y年m月d日 H:i:s') . "

"; + + // 总体统计 + $summary = $fundData['summary']; + $content .= "

总体统计

"; + $content .= "
    "; + $content .= "
  • 上涨基金:{$summary['up_count']}只
  • "; + $content .= "
  • 下跌基金:{$summary['down_count']}只
  • "; + $content .= "
  • 持平基金:{$summary['flat_count']}只
  • "; + $content .= "
  • 总投资:{$this->formatCurrency($summary['total_investment'])}
  • "; + $content .= "
  • 当前价值:{$this->formatCurrency($summary['total_current_value'])}
  • "; + $content .= "
  • 总盈亏:{$this->formatCurrency($summary['total_profit_loss'])}
  • "; + $content .= "
  • 盈亏比例:{$summary['total_profit_loss_rate']}%
  • "; + $content .= "
"; + + // 基金详情 + $content .= "

基金详情

"; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + + foreach ($fundData['fundsData'] as $fundCode => $fund) { + $investment = $fundData['fundChannelMap'][$fundCode] ?? 0; + $currentValue = isset($fund['current_value']) ? $fund['current_value'] : 0; + $profitLoss = $currentValue - $investment; + $profitLossRate = $investment > 0 ? ($profitLoss / $investment) * 100 : 0; + + // 涨跌颜色 + $changeColor = floatval($fund['gszzl']) > 0 ? '#009900' : '#ff0000'; + $yesterdayChangeColor = floatval($fund['yesterday_change']) > 0 ? '#009900' : '#ff0000'; + $profitLossColor = $profitLoss > 0 ? '#009900' : '#ff0000'; + + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + } + $content .= "
基金代码基金名称当前净值涨跌幅昨日涨跌幅投资金额当前价值盈亏
{$fundCode}{$fund['name']}{$fund['gsz']}{$fund['gszzl']}%{$fund['yesterday_change']}%{$this->formatCurrency($investment)}{$this->formatCurrency($currentValue)}{$this->formatCurrency($profitLoss)} ({$this->formatNumber($profitLossRate)}%)
"; + + // 渠道统计 + $content .= "

渠道统计

"; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + + foreach ($fundData['channelStats'] as $channelName => $channelData) { + $profitLoss = $channelData['total_current_value'] - $channelData['total_investment']; + $profitLossColor = $profitLoss > 0 ? '#009900' : '#ff0000'; + + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + $content .= ""; + } + $content .= "
渠道基金数量投资金额当前价值盈亏
{$channelName}{$channelData['fund_count']}{$this->formatCurrency($channelData['total_investment'])}{$this->formatCurrency($channelData['total_current_value'])}{$this->formatCurrency($profitLoss)}
"; + + return $content; + } + + /** + * 判断是否应该发送邮件 + */ + private function shouldSendEmail() { + $now = new DateTime(); + $currentDay = intval($now->format('w')); + $currentHour = intval($now->format('H')); + $currentMinute = intval($now->format('i')); + + $schedule = $this->emailSchedule; + $status = $this->loadEmailStatus(); + + // 检查是否在设定的工作日 + if (!in_array($currentDay, $schedule['days'])) { + return false; + } + + // 检查是否在设定的时间范围内(14:30) + if ($currentHour != $schedule['hour'] || $currentMinute < $schedule['minute']) { + return false; + } + + // 检查今天是否已经发送过邮件 + if ($status['last_sent_date'] == date('Y-m-d')) { + return false; + } + + return true; + } + + /** + * 发送基金状态邮件 + */ + public function sendFundStatusEmail() { + if (!$this->shouldSendEmail()) { + return false; + } + + // 获取基金数据 + $fundData = $this->getFundData(); + + // 格式化邮件内容 + $subject = "基金情况推送 - " . date('Y年m月d日'); + $body = $this->formatFundEmailContent($fundData); + + // 发送邮件 + return $this->sendEmail($subject, $body); + } + + /** + * 测试邮件发送功能 + */ + public function testEmail($subject, $body) { + return $this->sendEmail($subject, $body); + } + + /** + * 加载基金配置 + */ + private function loadConfig() { + return FileManager::loadJsonFile($this->configFile, [], [$this, 'initConfig']); + } + + /** + * 加载历史数据 + */ + private function loadHistory() { + return FileManager::loadJsonFile($this->historyFile, [], [$this, 'initHistory']); + } + + /** + * 保存历史数据 + */ + private function saveHistory($history) { + return FileManager::saveJsonFile($this->historyFile, $history); + } + + /** + * 更新历史数据 + */ + private function updateHistory($fundsData) { + $history = $this->loadHistory(); + $today = date('Y-m-d'); + + // 确保数组结构完整 + if (!isset($history['yesterday_data']) || !is_array($history['yesterday_data'])) { + $history['yesterday_data'] = []; + } + if (!isset($history['today_data']) || !is_array($history['today_data'])) { + $history['today_data'] = []; + } + if (!isset($history['last_update_date'])) { + $history['last_update_date'] = $today; + } + + // 如果是新的一天,将昨天的数据移到历史记录中 + if ($history['last_update_date'] !== $today) { + // 将昨天的数据保存为历史数据 + // 确保今天的数据不为空才移动,避免覆盖已有的历史数据 + if (!empty($history['today_data'])) { + $history['yesterday_data'] = $history['today_data']; + } + // 清空今天的数据,为新数据做准备 + $history['today_data'] = []; + // 更新最后更新日期 + $history['last_update_date'] = $today; + } + + // 保存今天的数据 + foreach ($fundsData as $fundCode => $fund) { + $history['today_data'][$fundCode] = [ + 'date' => $today, + 'change' => floatval($fund['gszzl']), + 'name' => $fund['name'] ?? '未知基金' + ]; + } + + // 确保保存操作成功 + if (!$this->saveHistory($history)) { + // 保存失败时记录错误信息(可以根据需要扩展错误处理) + error_log('Failed to save history data on ' . $today); + } + + return $history; + } + + /** + * 获取基金的历史涨幅(昨天的数据) + */ + private function getFundHistory($fundCode) { + $history = $this->loadHistory(); + + if (isset($history['yesterday_data'][$fundCode])) { + return $history['yesterday_data'][$fundCode]['change']; + } + + return null; // 没有历史数据 + } + + /** + * 缓存路径 + */ + private function getFundCachePath($fundCode) { + return $this->cacheDir . "/fund_{$fundCode}.json"; + } + + /** + * 从缓存读取基金数据(短期) + */ + private function getFundFromCache($fundCode) { + $file = $this->getFundCachePath($fundCode); + if (!file_exists($file)) return false; + // 过期判断 + if (time() - filemtime($file) > $this->fundCacheTTL) return false; + $raw = @file_get_contents($file); + if ($raw === false) return false; + $data = json_decode($raw, true); + return is_array($data) ? $data : false; + } + + /** + * 写入缓存 + */ + private function cacheFundData($fundCode, $fundData) { + // 保证目录存在 + FileManager::ensureDirExists($this->cacheDir); + @file_put_contents($this->getFundCachePath($fundCode), json_encode($fundData, JSON_UNESCAPED_UNICODE)); + } + + /** + * 获取批量数据缓存路径 + */ + private function getBatchCachePath($key) { + return $this->cacheDir . "/batch_{$key}.json"; + } + + /** + * 从缓存读取批量数据 + */ + private function getFromBatchCache($key) { + $file = $this->getBatchCachePath($key); + if (!file_exists($file)) return false; + // 过期判断 + if (time() - filemtime($file) > $this->batchCacheTTL) return false; + $raw = @file_get_contents($file); + if ($raw === false) return false; + $data = json_decode($raw, true); + return is_array($data) ? $data : false; + } + + /** + * 写入批量数据缓存 + */ + private function cacheBatchData($key, $data) { + // 保证目录存在 + FileManager::ensureDirExists($this->cacheDir); + @file_put_contents($this->getBatchCachePath($key), json_encode($data, JSON_UNESCAPED_UNICODE)); + } + + + + /** + * 加载访问记录 + */ + private function loadVisits() { + return FileManager::loadJsonFile($this->dataFile, []); + } + + /** + * 保存访问记录 + */ + private function saveVisits($visits) { + return file_put_contents($this->dataFile, json_encode($visits)); + } + + /** + * 记录访问 + */ + private function recordVisit() { + $clientIP = $this->getClientIP(); + $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? 'Unknown'; + $timestamp = time(); + $date = date('Y-m-d H:i:s'); + + // 检查是否需要记录这次访问(避免短时间内重复计数) + if (!$this->shouldRecordVisit($clientIP, $timestamp)) { + return false; // 不需要记录 + } + + $visitorData = [ + 'ip' => $clientIP, + 'user_agent' => $userAgent, + 'timestamp' => $timestamp, + 'date' => $date, + 'referer' => $_SERVER['HTTP_REFERER'] ?? 'Direct' + ]; + + // 保存访问记录 + $visits = $this->loadVisits(); + $visits[] = $visitorData; + + // 只保留最近1000条记录,平衡数据完整性和存储压力 + if (count($visits) > 1000) { + $visits = array_slice($visits, -1000); + } + + file_put_contents($this->dataFile, json_encode($visits, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)); + + // 更新统计 + $this->updateStats($clientIP); + + return true; + } + + /** + * 判断是否应该记录这次访问 + * 同一IP在10分钟内的访问只记录一次 + */ + private function shouldRecordVisit($clientIP, $currentTimestamp) { + $visits = $this->loadVisits(); + $timeThreshold = 10 * 60; // 10分钟(秒) + + // 检查最近的访问记录 + for ($i = count($visits) - 1; $i >= 0; $i--) { + $visit = $visits[$i]; + // 如果找到相同IP且时间间隔小于阈值,则不记录 + if ($visit['ip'] === $clientIP && ($currentTimestamp - $visit['timestamp']) < $timeThreshold) { + return false; + } + // 只检查最近的记录,避免遍历所有数据 + if (($currentTimestamp - $visit['timestamp']) > $timeThreshold) { + break; + } + } + + return true; + } + + /** + * 获取客户端IP + */ + private function getClientIP() { + $ip = 'Unknown'; + + if (!empty($_SERVER['HTTP_CLIENT_IP'])) { + $ip = $_SERVER['HTTP_CLIENT_IP']; + } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { + $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; + } elseif (!empty($_SERVER['REMOTE_ADDR'])) { + $ip = $_SERVER['REMOTE_ADDR']; + } + + // 处理多个IP的情况(如经过代理) + if (strpos($ip, ',') !== false) { + $ips = explode(',', $ip); + $ip = trim($ips[0]); + } + + return $ip; + } + + /** + * 加载统计数据 + */ + private function loadStats() { + $stats = FileManager::loadJsonFile($this->statsFile, [], [$this, 'initStats']); + + // 确保数据结构完整 + if (!isset($stats['unique_ips'])) { + $stats['unique_ips'] = []; + } + + return $stats; + } + + /** + * 更新统计数据 + */ + private function updateStats($clientIP) { + $stats = $this->loadStats(); + $visits = $this->loadVisits(); + + // 检查是否需要重置今日统计 + $today = date('Y-m-d'); + if ($stats['last_reset'] !== $today) { + $stats['today_visits'] = 0; + $stats['today_unique_visitors'] = 0; + $stats['last_reset'] = $today; + } + + // 更新总访问量 + $stats['total_visits'] = count($visits); + $stats['today_visits']++; + + // 更新独立访客统计 + $allIPs = array_column($visits, 'ip'); + $uniqueIPs = array_unique($allIPs); + $stats['unique_visitors'] = count($uniqueIPs); + + // 更新今日独立访客 + $todayVisits = array_filter($visits, function($visit) use ($today) { + return date('Y-m-d', $visit['timestamp']) === $today; + }); + $todayIPs = array_unique(array_column($todayVisits, 'ip')); + $stats['today_unique_visitors'] = count($todayIPs); + + // 更新每日统计 + $todayKey = date('Y-m-d'); + if (!isset($stats['daily_stats'][$todayKey])) { + $stats['daily_stats'][$todayKey] = 0; + } + $stats['daily_stats'][$todayKey]++; + + // 只保留最近30天的统计 + if (count($stats['daily_stats']) > 30) { + $stats['daily_stats'] = array_slice($stats['daily_stats'], -30, 30, true); + } + + // 保存唯一IP列表(用于快速计算) + $stats['unique_ips'] = array_values($uniqueIPs); + + file_put_contents($this->statsFile, json_encode($stats, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)); + + return $stats; + } + + /** + * 获取访问统计 + */ + public function getVisitStats() { + $stats = $this->loadStats(); + $visits = $this->loadVisits(); + + // 获取最近访问记录(最新的10条) + $recentVisits = array_slice($visits, -10); + $recentVisits = array_reverse($recentVisits); // 最新的在前面 + + return [ + 'success' => true, + 'data' => [ + 'total_visits' => $stats['total_visits'], + 'today_visits' => $stats['today_visits'], + 'unique_visitors' => $stats['unique_visitors'], + 'today_unique_visitors' => $stats['today_unique_visitors'], + 'last_reset' => $stats['last_reset'], + 'daily_stats' => $stats['daily_stats'], + 'recent_visits' => $recentVisits + ] + ]; + } + + /** + * 批量获取基金数据 + */ + public function getBatchFundData($fundCodes) { + $fundsData = []; + $errors = []; + $needToFetch = []; + + // 先从缓存获取可用的数据 + foreach ($fundCodes as $fundCode) { + $fundData = $this->getFundFromCache($fundCode); + if ($fundData) { + $fundsData[$fundCode] = $fundData; + } else { + $needToFetch[] = $fundCode; + } + } + + // 只获取缓存中不存在的数据 + if (!empty($needToFetch)) { + foreach ($needToFetch as $fundCode) { + $fundData = $this->getSingleFundData($fundCode); + if ($fundData) { + $fundsData[$fundCode] = $fundData; + } else { + $errors[] = "基金 {$fundCode} 数据获取失败"; + } + // 高频请求时移除延迟 + // usleep(150000); // 0.15秒 + } + } + + return [ + 'success' => $fundsData, + 'errors' => $errors + ]; + } + + /** + * 获取单个基金数据 + */ + private function getSingleFundData($fundCode) { + // 先尝试短期缓存 + $cached = $this->getFundFromCache($fundCode); + if ($cached) return $cached; + + $apiUrl = "http://fundgz.1234567.com.cn/js/{$fundCode}.js?" . time(); + $context = stream_context_create([ + 'http' => [ + 'timeout' => 10, + 'header' => "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\r\n", + 'ignore_errors' => true + ] + ]); + + $response = @file_get_contents($apiUrl, false, $context); + if (!$response) { + return false; + } + + // 兼容不同jsonp格式 + if (preg_match('/jsonpgz\d*\((.*)\);?/', $response, $matches)) { + $data = json_decode($matches[1], true); + // 检查数据是否有效 + if ($data && isset($data['fundcode']) && $data['fundcode'] == $fundCode) { + // 写入缓存以便后续短期复用 + $this->cacheFundData($fundCode, $data); + return $data; + } + } + return false; + } + + /** + * 计算各渠道统计信息 + */ + private function calculateChannelStats($fundsData, $fundChannelMap, $fundInvestmentMap) { + $channelStats = []; + + // 初始化渠道统计 + $channelNames = array_unique($fundChannelMap); + foreach ($channelNames as $channelName) { + $channelStats[$channelName] = [ + 'count' => 0, + 'totalChange' => 0, + 'upCount' => 0, + 'downCount' => 0, + 'totalInvestment' => 0, + 'totalCurrentValue' => 0, + 'totalProfitLoss' => 0, + 'funds' => [] + ]; + } + + // 统计各渠道数据 + foreach ($fundsData as $fundCode => $fund) { + $channelName = $fundChannelMap[$fundCode]; + // 明确使用当前的估算涨跌幅(gszzl),而不是历史数据 + $currentChange = floatval($fund['gszzl']); + $channelStats[$channelName]['totalChange'] += $currentChange; + + // 使用配置的投资金额 + $investment = $fundInvestmentMap[$fundCode] ?? 1000; + + // 更真实的基金计算方式 + // 1. 获取单位净值(使用昨日的单位净值作为购买时的净值) + $unitNetValue = floatval($fund['dwjz']) > 0 ? floatval($fund['dwjz']) : 1.0; + + // 2. 计算购买份额(投资金额 / 单位净值) + $shares = $investment / $unitNetValue; + + // 3. 获取当前估算净值 + $currentNetValue = floatval($fund['gsz']) > 0 ? floatval($fund['gsz']) : $unitNetValue; + + // 4. 计算当前价值(份额 * 当前估算净值) + $currentValue = $shares * $currentNetValue; + + // 5. 计算盈亏 + $profitLoss = $currentValue - $investment; + + // 正确计算昨日收盘时的价值 + // 使用正确的公式:昨日单位净值 = 当前单位净值 / (1 + 今日涨幅/100) * (1 + 昨日涨幅/100) + $todayChange = floatval($fund['gszzl']); + $yesterdayChange = floatval($fund['yesterday_change'] ?? 0); + + // 计算昨日单位净值 + // 如果今日涨幅为-100%(不可能),则使用替代方案 + $yesterdayUnitNetValue = ($todayChange == -100) ? + $unitNetValue : ($unitNetValue / (1 + $todayChange / 100)) * (1 + $yesterdayChange / 100); + + // 计算昨日价值 + $yesterdayValue = $shares * $yesterdayUnitNetValue; + + // 7. 计算今日盈亏(从昨日收盘价到当前估值) + $todayProfitLoss = $currentValue - $yesterdayValue; + + $channelStats[$channelName]['count']++; + $channelStats[$channelName]['totalInvestment'] += $investment; + $channelStats[$channelName]['totalCurrentValue'] += $currentValue; + $channelStats[$channelName]['totalProfitLoss'] += $profitLoss; + // 确保昨天涨幅数据也被包含在channelStats中 + $formattedYesterdayChange = $yesterdayChange !== null ? + ($yesterdayChange > 0 ? '+' : '') . $this->formatNumber($yesterdayChange) . '%' : '--'; + + $channelStats[$channelName]['funds'][$fundCode] = array_merge($fund, [ + 'investment' => $investment, + 'current_value' => $currentValue, + 'profit_loss' => $profitLoss, + 'shares' => $shares, + 'unit_net_value' => $unitNetValue, + 'current_net_value' => $currentNetValue, + 'yesterday_unit_net_value' => $yesterdayUnitNetValue, // 添加昨日单位净值 + 'yesterday_value' => $yesterdayValue, // 添加昨日收盘价值 + 'today_profit_loss' => $todayProfitLoss, // 添加今日盈亏 + 'yesterday_change' => $yesterdayChange, // 添加昨日涨幅 + 'formatted_yesterday_change' => $formattedYesterdayChange // 添加格式化的昨日涨幅 + ]); + + // 使用更严格的判断标准,避免浮点数精度问题 + if ($currentChange > 0.001) { + $channelStats[$channelName]['upCount']++; + } elseif ($currentChange < -0.001) { + $channelStats[$channelName]['downCount']++; + } + } + + // 计算平均涨跌幅和盈亏比例 + foreach ($channelStats as $channelName => &$stats) { + $stats['avgChange'] = $stats['count'] > 0 ? $stats['totalChange'] / $stats['count'] : 0; + $stats['profitLossRate'] = $stats['totalInvestment'] > 0 ? ($stats['totalProfitLoss'] / $stats['totalInvestment']) * 100 : 0; + } + + return $channelStats; + } + + /** + * 根据渠道索引获取渠道名称 + */ + private function getChannelName($channelIndex) { + $channels = ["招商银行", "天天基金", "支付宝"]; + return $channels[$channelIndex] ?? "未知渠道"; + } + + /** + * 获取渠道CSS类名 + */ + private function getChannelClass($channelName) { + $channelMap = [ + '招商银行' => 'cmb', + '天天基金' => 'tt', + '支付宝' => 'zfb' + ]; + return $channelMap[$channelName] ?? 'cmb'; + } + + /** + * 获取渠道图标 + */ + private function getChannelIcon($channelName) { + $iconMap = [ + '招商银行' => '🏦', + '天天基金' => '📱', + '支付宝' => '💙' + ]; + return $iconMap[$channelName] ?? '🏦'; + } + + /** + * 获取渠道描述 + */ + private function getChannelDescription($channelName) { + $descMap = [ + '招商银行' => '银行渠道,申购费率较低,服务稳定', + '天天基金' => '专业基金平台,品种齐全,数据精准', + '支付宝' => '便捷支付,操作简单,用户体验佳' + ]; + return $descMap[$channelName] ?? '基金购买渠道'; + } + + /** + * 格式化数字 + */ + private function formatNumber($number) { + return number_format($number, 2); + } + + /** + * 格式化货币金额 + */ + private function formatCurrency($amount) { + if ($amount >= 10000) { + return number_format($amount / 10000, 2) . '万元'; + } + return number_format($amount, 2) . '元'; + } + + /** + * 获取基金数据 + */ + public function getFundData() { + // 尝试加载批量缓存 + $batchCacheKey = 'batch_fund_data'; + $batchCached = $this->getFromBatchCache($batchCacheKey); + if ($batchCached) { + return $batchCached; + } + + // 从配置文件读取基金配置 + $config = $this->loadConfig(); + + if (empty($config)) { + return [ + 'success' => false, + 'message' => '基金配置文件不存在或为空' + ]; + } + + // 按渠道分组基金代码 + $channelFunds = []; + foreach ($config as $fund) { + $channelIndex = $fund['channel']; + $fundCode = $fund['fund_code']; + + if (!isset($channelFunds[$channelIndex])) { + $channelFunds[$channelIndex] = ["$channelIndex"]; + } + + $channelFunds[$channelIndex][] = $fundCode; + } + + // 重新索引数组 + $channelFunds = array_values($channelFunds); + + // 合并所有基金代码 + $allFundCodes = []; + $fundChannelMap = []; // 基金代码到渠道的映射 + $fundInvestmentMap = []; // 基金代码到投资金额的映射 + + foreach ($channelFunds as $channelData) { + $channelIndex = $channelData[0]; + $channelName = $this->getChannelName($channelIndex); + + for ($i = 1; $i < count($channelData); $i++) { + $fundCode = $channelData[$i]; + $allFundCodes[] = $fundCode; + $fundChannelMap[$fundCode] = $channelName; + + // 查找对应的投资金额 + foreach ($config as $fund) { + if ($fund['fund_code'] === $fundCode && $fund['channel'] === $channelIndex) { + $fundInvestmentMap[$fundCode] = $fund['investment']; + break; + } + } + } + } + + // 获取基金数据 + $result = $this->getBatchFundData($allFundCodes); + $fundsData = $result['success']; + $errors = $result['errors']; + + // 首先计算总体统计信息,确保使用原始的当前数据,避免任何数据混淆 + // 总体统计信息 + $total = count($fundsData); + $upCount = 0; + $downCount = 0; + $flatCount = 0; + $totalChange = 0; + + // 添加总体盈亏统计 + $totalInvestment = 0; + $totalCurrentValue = 0; + $totalProfitLoss = 0; + $totalProfitLossRate = 0; + + foreach ($fundsData as $fundCode => $fund) { + // 明确使用当前的估算涨跌幅(gszzl),而不是历史数据 + // gszzl字段是当前基金的实时估算涨跌幅 + $currentChange = isset($fund['gszzl']) ? floatval($fund['gszzl']) : 0; + $totalChange += $currentChange; + + // 精确判断当前涨跌状态 + if ($currentChange > 0.001) $upCount++; // 当前上涨 + elseif ($currentChange < -0.001) $downCount++; // 当前下跌 + else $flatCount++; // 持平 + } + + // 然后再进行其他操作 + // 更新历史数据 - 记录今天的数据 + $this->updateHistory($fundsData); + + // 记录每日数据 + $this->recordDailyData($fundsData); + + // 为每个基金添加历史涨幅数据(昨天的数据) + foreach ($fundsData as $fundCode => &$fund) { + $yesterdayChange = $this->getFundHistory($fundCode); + // 确保yesterday_change始终有值,即使没有历史数据也提供默认值 + $fund['yesterday_change'] = $yesterdayChange !== null ? $yesterdayChange : 0; + $fund['formatted_yesterday_change'] = $yesterdayChange !== null ? + ($yesterdayChange > 0 ? '+' : '') . $this->formatNumber($yesterdayChange) . '%' : '--'; + } + + // 计算各渠道统计信息 + $channelStats = $this->calculateChannelStats($fundsData, $fundChannelMap, $fundInvestmentMap); + + // 使用配置的投资金额计算盈亏 - 更真实的计算方式 + foreach ($fundsData as $fundCode => &$fund) { + $investment = $fundInvestmentMap[$fundCode] ?? 1000; + + // 1. 获取单位净值 + $unitNetValue = floatval($fund['dwjz']) > 0 ? floatval($fund['dwjz']) : 1.0; + + // 2. 计算购买份额 + $shares = $investment / $unitNetValue; + + // 3. 获取当前估算净值 + $currentNetValue = floatval($fund['gsz']) > 0 ? floatval($fund['gsz']) : $unitNetValue; + + // 4. 计算当前价值 + $currentValue = $shares * $currentNetValue; + + $profitLoss = $currentValue - $investment; + + // 正确计算昨日收盘时的价值 + // 使用正确的公式:昨日单位净值 = 当前单位净值 / (1 + 今日涨幅/100) * (1 + 昨日涨幅/100) + $todayChange = floatval($fund['gszzl']); + $yesterdayChange = floatval($fund['yesterday_change'] ?? 0); + + // 计算昨日单位净值 + // 如果今日涨幅为-100%(不可能),则使用替代方案 + $yesterdayUnitNetValue = ($todayChange == -100) ? + $unitNetValue : ($unitNetValue / (1 + $todayChange / 100)) * (1 + $yesterdayChange / 100); + + // 计算昨日价值和今日盈亏 + $yesterdayValue = $shares * $yesterdayUnitNetValue; + $todayProfitLoss = $currentValue - $yesterdayValue; + + // 确保数据一致性 + $fund['yesterday_unit_net_value'] = $yesterdayUnitNetValue; + + $totalInvestment += $investment; + $totalCurrentValue += $currentValue; + $totalProfitLoss += $profitLoss; + } + + $avgChange = $total > 0 ? $totalChange / $total : 0; + $totalProfitLossRate = $totalInvestment > 0 ? ($totalProfitLoss / $totalInvestment) * 100 : 0; + + // 格式化数据返回 + $result = [ + 'success' => true, + 'data' => [ + 'summary' => [ + 'total' => $total, + 'upCount' => $upCount, + 'downCount' => $downCount, + 'flatCount' => $flatCount, + 'avgChange' => $avgChange, + 'totalInvestment' => $totalInvestment, + 'totalCurrentValue' => $totalCurrentValue, + 'totalProfitLoss' => $totalProfitLoss, + 'totalProfitLossRate' => $totalProfitLossRate, + 'formattedTotalInvestment' => $this->formatCurrency($totalInvestment), + 'formattedTotalCurrentValue' => $this->formatCurrency($totalCurrentValue), + 'formattedTotalProfitLoss' => $this->formatCurrency($totalProfitLoss), + 'formattedProfitLossRate' => $this->formatNumber($totalProfitLossRate), + 'profitLossClass' => $totalProfitLoss >= 0 ? 'profit' : 'loss', + 'profitLossIcon' => $totalProfitLoss >= 0 ? '📈' : '📉' + ], + 'channelStats' => $channelStats, + 'fundsData' => $fundsData, + 'fundChannelMap' => $fundChannelMap, + 'errors' => $errors, + 'timestamp' => date('Y-m-d H:i:s') + ] + ]; + + // 缓存批量结果 + $this->cacheBatchData($batchCacheKey, $result); + + return $result; + } + + /** + * 处理API请求 + */ + public function handleRequest() { + try { + $method = $_SERVER['REQUEST_METHOD']; + + // 解析请求参数 + $queryString = $_SERVER['QUERY_STRING'] ?? ''; + parse_str($queryString, $params); + $action = $params['action'] ?? 'fund_data'; + + // 记录访问(除了统计接口本身) + if ($action !== 'get_stats') { + $this->recordVisit(); + } + + if ($method === 'GET') { + switch ($action) { + case 'fund_data': + case 'get_fund_data': + // 获取基金数据,同时支持get_fund_data和fund_data两种action + // 检查是否提供了单个fund_code参数 + $fundCode = isset($params['fund_code']) ? trim($params['fund_code']) : ''; + if (!empty($fundCode)) { + $fundData = $this->getSingleFundData($fundCode); + if ($fundData) { + $result = ['success' => true, 'data' => $fundData]; + } else { + $result = ['success' => false, 'message' => '获取基金数据失败: ' . $fundCode]; + } + } else { + // 否则获取所有基金数据 + $result = $this->getFundData(); + } + break; + + case 'get_stats': + // 获取访问统计 + $result = $this->getVisitStats(); + break; + + case 'get_operation_log': + $limit = isset($params['limit']) ? intval($params['limit']) : 20; + $result = $this->getOperationLog($limit); + break; + + case 'get_fund_chart': + $fundCode = isset($params['fund_code']) ? trim($params['fund_code']) : ''; + if (empty($fundCode)) { + $result = ['success' => false, 'message' => '基金代码不能为空']; + } else { + $result = $this->getFundChartData($fundCode); + } + break; + + default: + http_response_code(404); + $result = ['error' => 'Endpoint not found']; + } + + // 检查是否需要发送基金情况邮件 + $this->sendFundStatusEmail(); + + // 统一返回JSON响应 + echo json_encode($result, JSON_UNESCAPED_UNICODE); + } else { + http_response_code(405); + echo json_encode(['error' => 'Method not allowed'], JSON_UNESCAPED_UNICODE); + } + } catch (Exception $e) { + // 捕获异常,返回错误响应 + http_response_code(500); + echo json_encode(['success' => false, 'message' => '服务器内部错误: ' . $e->getMessage()], JSON_UNESCAPED_UNICODE); + } + } +} + +// 错误处理 +try { + // 处理API请求 + $api = new FundMonitorAPI(); + $api->handleRequest(); +} catch (Exception $e) { + http_response_code(500); + echo json_encode([ + 'success' => false, + 'error' => '服务器内部错误: ' . $e->getMessage() + ]); +} +?> + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..36719fc --- /dev/null +++ b/composer.json @@ -0,0 +1,5 @@ +{ + "require": { + "ccxt/ccxt": "^1.53" + } +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..cb49fee --- /dev/null +++ b/composer.lock @@ -0,0 +1,446 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", + "This file is @generated automatically" + ], + "content-hash": "7fe6ed9149491f865075a222db8f3a4a", + "packages": [ + { + "name": "ccxt/ccxt", + "version": "1.53.1", + "source": { + "type": "git", + "url": "https://github.com/ccxt/ccxt.git", + "reference": "df03acf6997ff35ee84abadc80bebcbe13e5efdc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ccxt/ccxt/zipball/df03acf6997ff35ee84abadc80bebcbe13e5efdc", + "reference": "df03acf6997ff35ee84abadc80bebcbe13e5efdc", + "shasum": "" + }, + "require": { + "ext-bcmath": "*", + "ext-curl": "*", + "ext-iconv": "*", + "ext-json": "*", + "ext-openssl": "*", + "ext-pcre": "*", + "pear/console_table": "1.3.1", + "php": ">=5.4.0", + "symfony/polyfill-mbstring": "^1.7" + }, + "suggest": { + "clue/buzz-react": "Required for asynchronous API calls to exchanges with PHP", + "clue/http-proxy-react": "Required for using a proxy when doing asynchronous API calls to exchanges with PHP", + "react/event-loop": "Required for asynchronous API calls to exchanges with PHP", + "recoil/react": "Required for asynchronous API calls to exchanges with PHP", + "recoil/recoil": "Required for asynchronous API calls to exchanges with PHP" + }, + "type": "library", + "autoload": { + "files": [ + "ccxt.php" + ], + "psr-4": { + "ccxt\\": "php/", + "ccxt_async\\": "php/async/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Igor Kroitor", + "email": "igor.kroitor@gmail.com", + "homepage": "https://github.com/kroitor", + "role": "Developer" + }, + { + "name": "Vitaly Gordon", + "email": "rocket.mind@gmail.com", + "homepage": "https://github.com/xpl", + "role": "Developer" + }, + { + "name": "Carlo Revelli", + "email": "carlo.revelli@berkeley.edu", + "homepage": "https://github.com/frosty00", + "role": "Junior Developer" + } + ], + "description": "A JavaScript / Python / PHP cryptocurrency trading library with support for more than 90 bitcoin/altcoin exchanges", + "homepage": "https://github.com/ccxt/ccxt", + "keywords": [ + "1BTCXE", + "1Broker", + "ACX", + "ANX", + "ANXPro", + "BL3P", + "BTC Markets", + "BTC Trade UA", + "BTCC", + "BTCChina", + "BTCExchange", + "BTCTrader", + "BTCTurk", + "BTCX", + "BX.in.th", + "Bit2C", + "BitBay", + "BitBays", + "BitMEX", + "BitMarket", + "Bitcoin.co.id", + "Bleutrade", + "BlinkTrade", + "BtcBox", + "Bter.com", + "C-CEX", + "CEX.IO", + "CHBTC", + "CNY", + "ChileBit", + "CoinMate", + "CoinSpot", + "Coinsecure", + "Crypto Capital", + "DOGE", + "EUR", + "EXMO", + "FYB-SE", + "FYB-SG", + "FoxBit", + "Gatecoin", + "Gemini", + "Huobi", + "HuobiPRO", + "LakeBTC", + "Liqui", + "LiveCoin", + "OKCoin", + "OKCoin.cn", + "OKCoin.com", + "OKEX", + "Paymium", + "Poloniex", + "QUOINE", + "Qryptos", + "QuadrigaCX", + "Southxchange", + "SurBitcoin", + "TheRockTrading", + "Tidex", + "USD", + "UrduBit", + "VBTC", + "Vaultoro", + "VirWoX", + "Wex", + "YoBit", + "Zaif", + "acx.io", + "algorithmic", + "algotrading", + "altcoin", + "altcoins", + "api", + "arbitrage", + "backtest", + "backtesting", + "binance", + "binance.com", + "bit2c.co.il", + "bitcoin", + "bitcoincoid", + "bitfinex", + "bitflyer", + "bitflyer.jp", + "bithumb", + "bithumb.com", + "bitlish", + "bitso", + "bitstamp", + "bittrex", + "bleutrade.com", + "bot", + "btc", + "btc-e", + "btc-trade.com.ua", + "btc-x", + "btcbox.co.jp", + "btce", + "btcexchange.ph", + "btcmarkets", + "btcmarkets.net", + "btctrader.com", + "btcturk.com", + "bter", + "ccex", + "cex", + "chilebit.net", + "coin", + "coincheck", + "coingi", + "coingi.com", + "coinmarketcap", + "coins", + "coinspot.com.au", + "crypto", + "crypto currency", + "crypto market", + "cryptocapital.co", + "cryptocurrency", + "currencies", + "currency", + "darkcoin", + "dash", + "digital currency", + "dogecoin", + "dsx", + "dsx.uk", + "e-commerce", + "etc", + "eth", + "ether", + "ethereum", + "exchange", + "exchanges", + "flowBTC", + "flowbtc.com", + "foxbit.exchange", + "framework", + "gdax", + "hitbtc", + "huobi.pro", + "independent reserve", + "independentreserve.com", + "invest", + "investing", + "investor", + "itBit", + "jubi.com", + "kraken", + "lakebtc.com", + "library", + "light", + "liqui.io", + "litecoin", + "ltc", + "luno", + "market", + "market data", + "markets", + "mercado", + "mercadobitcoin", + "mercadobitcoin.br", + "merchandise", + "merchant", + "minimal", + "mixcoins", + "mixcoins.com", + "nova", + "novaexchange", + "novaexchange.com", + "okex.com", + "order", + "order book", + "orderbook", + "price", + "price data", + "pricefeed", + "private", + "public", + "ripple", + "strategy", + "surbitcoin.com", + "tidex.com", + "toolkit", + "trade", + "trader", + "trading", + "urdubit.com", + "vbtc.exchange", + "vbtc.vn", + "volume", + "wex.nz", + "xBTCe", + "xbt", + "xbtce.com", + "xrp", + "yobit.net", + "yunbi", + "zec", + "zerocoin" + ], + "support": { + "issues": "https://github.com/ccxt/ccxt/issues", + "source": "https://github.com/ccxt/ccxt/tree/1.53.1" + }, + "funding": [ + { + "url": "https://opencollective.com/ccxt", + "type": "open_collective" + } + ], + "time": "2021-07-13T22:50:19+00:00" + }, + { + "name": "pear/console_table", + "version": "v1.3.1", + "source": { + "type": "git", + "url": "https://github.com/pear/Console_Table.git", + "reference": "1930c11897ca61fd24b95f2f785e99e0f36dcdea" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/pear/Console_Table/zipball/1930c11897ca61fd24b95f2f785e99e0f36dcdea", + "reference": "1930c11897ca61fd24b95f2f785e99e0f36dcdea", + "shasum": "" + }, + "require": { + "php": ">=5.2.0" + }, + "suggest": { + "pear/Console_Color2": ">=0.1.2" + }, + "type": "library", + "autoload": { + "classmap": [ + "Table.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Jan Schneider", + "homepage": "http://pear.php.net/user/yunosh" + }, + { + "name": "Tal Peer", + "homepage": "http://pear.php.net/user/tal" + }, + { + "name": "Xavier Noguer", + "homepage": "http://pear.php.net/user/xnoguer" + }, + { + "name": "Richard Heyes", + "homepage": "http://pear.php.net/user/richard" + } + ], + "description": "Library that makes it easy to build console style tables.", + "homepage": "http://pear.php.net/package/Console_Table/", + "keywords": [ + "console" + ], + "support": { + "issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Console_Table", + "source": "https://github.com/pear/Console_Table" + }, + "time": "2018-01-25T20:47:17+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.33.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6d857f4d76bd4b343eac26d6b539585d2bc56493", + "reference": "6d857f4d76bd4b343eac26d6b539585d2bc56493", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.33.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-12-23T08:48:59+00:00" + } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": false, + "prefer-lowest": false, + "platform": {}, + "platform-dev": {}, + "plugin-api-version": "2.6.0" +} diff --git a/data/email_config.json b/data/email_config.json new file mode 100644 index 0000000..25b2a9f --- /dev/null +++ b/data/email_config.json @@ -0,0 +1,12 @@ +{ + "smtp_server": "smtp.qq.com", + "smtp_port": 465, + "smtp_secure": "ssl", + "username": "768057005@qq.com", + "password": "guyzqekhycnobdfe", + "from_email": "768057005@qq.com", + "from_name": "基金监控系统", + "to_emails": [ + "1693710928@qq.com" + ] +} \ No newline at end of file diff --git a/data/email_status.json b/data/email_status.json new file mode 100644 index 0000000..818364b --- /dev/null +++ b/data/email_status.json @@ -0,0 +1,6 @@ +{ + "last_sent_date": "2025-12-12", + "last_sent_time": "04:17:24", + "sent_count": 7, + "failed_count": 6 +} \ No newline at end of file diff --git a/data/fund_config.json b/data/fund_config.json new file mode 100644 index 0000000..f9196c3 --- /dev/null +++ b/data/fund_config.json @@ -0,0 +1,70 @@ +[ + { + "channel": "1", + "fund_code": "003766", + "investment": 1000 + }, + { + "channel": "1", + "fund_code": "008327", + "investment": 1000 + }, + { + "channel": "1", + "fund_code": "012863", + "investment": 10000 + }, + { + "channel": "1", + "fund_code": "023350", + "investment": 1000 + }, + { + "channel": "1", + "fund_code": "017560", + "investment": 1000, + "name": "基金017560" + }, + { + "channel": "2", + "fund_code": "011815", + "investment": 1000, + "name": "基金011815" + }, + { + "channel": "2", + "fund_code": "003598", + "investment": 1000, + "name": "基金003598" + }, + { + "channel": "2", + "fund_code": "004206", + "investment": 1000, + "name": "基金004206" + }, + { + "channel": "2", + "fund_code": "022365", + "investment": 1000, + "name": "基金022365" + }, + { + "channel": "2", + "fund_code": "022364", + "investment": 1000, + "name": "基金022364" + }, + { + "channel": "2", + "fund_code": "011103", + "investment": 1000, + "name": "基金011103" + }, + { + "channel": "0", + "fund_code": "025825", + "investment": 1000, + "name": "基金025825" + } +] \ No newline at end of file diff --git a/data/fund_daily_data.json b/data/fund_daily_data.json new file mode 100644 index 0000000..66ac6a0 --- /dev/null +++ b/data/fund_daily_data.json @@ -0,0 +1,109 @@ +{ + "last_update": "2025-12-12", + "funds": { + "003766": [ + { + "date": "2025-12-12", + "dwjz": "1.7080", + "gsz": "1.7077", + "gszzl": -0.02, + "name": "广发创业板ETF发起式联接C" + } + ], + "004206": [ + { + "date": "2025-12-12", + "dwjz": "2.9413", + "gsz": "2.9407", + "gszzl": -0.02, + "name": "华商元亨混合A" + } + ], + "019432": [], + "003598": [ + { + "date": "2025-12-12", + "dwjz": "4.5860", + "gsz": "4.5906", + "gszzl": 0.1, + "name": "华商润丰灵活配置混合A" + } + ], + "001071": [], + "018994": [], + "003567": [], + "008327": [ + { + "date": "2025-12-12", + "dwjz": "2.6023", + "gsz": "2.6075", + "gszzl": 0.2, + "name": "东财通信C" + } + ], + "012863": [ + { + "date": "2025-12-12", + "dwjz": "0.7814", + "gsz": "0.7700", + "gszzl": -1.46, + "name": "汇添富中证电池主题ETF发起式联接C" + } + ], + "017560": [ + { + "date": "2025-12-12", + "dwjz": "2.0737", + "gsz": "2.0600", + "gszzl": -0.66, + "name": "华安上证科创板芯片ETF发起式联接C" + } + ], + "014320": [], + "023350": [ + { + "date": "2025-12-12", + "dwjz": "3.2060", + "gsz": "3.2170", + "gszzl": 0.34, + "name": "诺安多策略混合C" + } + ], + "011815": [ + { + "date": "2025-12-12", + "dwjz": "1.4265", + "gsz": "1.4228", + "gszzl": -0.26, + "name": "恒越优势精选混合A" + } + ], + "022365": [ + { + "date": "2025-12-12", + "dwjz": "3.5688", + "gsz": "3.5622", + "gszzl": -0.19, + "name": "永赢科技智选混合发起C" + } + ], + "022364": [ + { + "date": "2025-12-12", + "dwjz": "3.5935", + "gsz": "3.5868", + "gszzl": -0.19, + "name": "永赢科技智选混合发起A" + } + ], + "011103": [ + { + "date": "2025-12-12", + "dwjz": "0.8012", + "gsz": "0.8023", + "gszzl": 0.14, + "name": "天弘中证光伏产业指数C" + } + ] + } +} \ No newline at end of file diff --git a/data/fund_history.json b/data/fund_history.json new file mode 100644 index 0000000..9890e31 --- /dev/null +++ b/data/fund_history.json @@ -0,0 +1,119 @@ +{ + "last_update": "2025-10-29", + "data": [], + "yesterday_data": { + "003766": { + "date": "2025-11-18", + "change": -0.43, + "name": "广发创业板ETF发起式联接C" + }, + "008327": { + "date": "2025-11-18", + "change": 1.55, + "name": "东财通信C" + }, + "012863": { + "date": "2025-11-18", + "change": -3.89, + "name": "汇添富中证电池主题ETF发起式联接C" + }, + "023350": { + "date": "2025-11-18", + "change": -1.27, + "name": "诺安多策略混合C" + }, + "017560": { + "date": "2025-11-18", + "change": 2.09, + "name": "华安上证科创板芯片ETF发起式联接C" + }, + "011815": { + "date": "2025-11-18", + "change": -1.14, + "name": "恒越优势精选混合" + }, + "003598": { + "date": "2025-11-18", + "change": 0.58, + "name": "华商润丰灵活配置混合A" + }, + "004206": { + "date": "2025-11-18", + "change": 0.7, + "name": "华商元亨混合A" + }, + "022365": { + "date": "2025-11-18", + "change": 1.27, + "name": "永赢科技智选混合发起C" + }, + "022364": { + "date": "2025-11-18", + "change": 1.27, + "name": "永赢科技智选混合发起A" + }, + "011103": { + "date": "2025-11-18", + "change": -2.1, + "name": "天弘中证光伏产业指数C" + } + }, + "today_data": { + "003766": { + "date": "2025-12-12", + "change": 0.6, + "name": "广发创业板ETF发起式联接C" + }, + "008327": { + "date": "2025-12-12", + "change": 1.63, + "name": "东财通信C" + }, + "012863": { + "date": "2025-12-12", + "change": -0.63, + "name": "汇添富中证电池主题ETF发起式联接C" + }, + "023350": { + "date": "2025-12-12", + "change": 0.56, + "name": "诺安多策略混合C" + }, + "017560": { + "date": "2025-12-12", + "change": 0.48, + "name": "华安上证科创板芯片ETF发起式联接C" + }, + "011815": { + "date": "2025-12-12", + "change": 0.58, + "name": "恒越优势精选混合A" + }, + "003598": { + "date": "2025-12-12", + "change": 0.47, + "name": "华商润丰灵活配置混合A" + }, + "004206": { + "date": "2025-12-12", + "change": 0.5, + "name": "华商元亨混合A" + }, + "022365": { + "date": "2025-12-12", + "change": 1.14, + "name": "永赢科技智选混合发起C" + }, + "022364": { + "date": "2025-12-12", + "change": 1.14, + "name": "永赢科技智选混合发起A" + }, + "011103": { + "date": "2025-12-12", + "change": 1.08, + "name": "天弘中证光伏产业指数C" + } + }, + "last_update_date": "2025-12-12" +} \ No newline at end of file diff --git a/data/fund_names.json b/data/fund_names.json new file mode 100644 index 0000000..9a8e911 --- /dev/null +++ b/data/fund_names.json @@ -0,0 +1,22 @@ +{ + "003766": "汇添富医疗服务混合", + "0": "易方达消费行业股票", + "001714": "工银文体产业股票", + "000241": "中欧时代先锋股票", + "001475": "易方达国防军工混合", + "1": "招商中证白酒指数", + "000689": "前海开源新经济混合", + "001102": "前海开源国家比较优势混合", + "001593": "天弘创业板ETF联接", + "000971": "高升沪深300指数增强", + "004206": "华商元亨混合A", + "019432": "永赢睿信混合C", + "003598": "华商润丰灵活配置混合A", + "001071": "华安媒体互联网混合A", + "018994": "中欧数字经济混合发起C", + "003567": "华夏行业景气混合A", + "008327": "东财通信C", + "012863": "汇添富中证电池主题ETF发起式联接C", + "014320": "德邦半导体产业混合发起式C", + "023350": "诺安多策略混合C" +} \ No newline at end of file diff --git a/data/last_cleanup.txt b/data/last_cleanup.txt new file mode 100644 index 0000000..35b53de --- /dev/null +++ b/data/last_cleanup.txt @@ -0,0 +1 @@ +1762443884 \ No newline at end of file diff --git a/data/operation_log.json b/data/operation_log.json new file mode 100644 index 0000000..259422e --- /dev/null +++ b/data/operation_log.json @@ -0,0 +1,381 @@ +{ + "0": { + "timestamp": "2025-12-12 04:47:50", + "action": "管理员登录", + "ip": "::1" + }, + "1": { + "timestamp": "2025-12-12 04:17:07", + "action": "管理员登录", + "ip": "::1" + }, + "2": { + "timestamp": "2025-11-11 13:41:58", + "action": "管理员登录", + "ip": "113.87.139.184" + }, + "3": { + "timestamp": "2025-11-06 08:31:27", + "action": "管理员登录", + "ip": "113.87.138.191" + }, + "4": { + "timestamp": "2025-11-05 14:45:57", + "action": "管理员登录", + "ip": "113.87.138.191" + }, + "5": { + "timestamp": "2025-11-05 14:34:30", + "action": "管理员登录", + "ip": "113.87.138.191" + }, + "6": { + "timestamp": "2025-11-05 09:47:16", + "action": "管理员登录", + "ip": "113.87.138.191" + }, + "7": { + "timestamp": "2025-11-01 23:18:46", + "action": "管理员登录", + "ip": "113.87.139.206" + }, + "8": { + "timestamp": "2025-10-31 23:11:13", + "action": "管理员登录", + "ip": "113.84.8.124" + }, + "9": { + "timestamp": "2025-10-31 10:20:41", + "action": "管理员注销", + "ip": "113.87.137.255" + }, + "10": { + "timestamp": "2025-10-31 10:18:31", + "action": "管理员登录", + "ip": "113.87.137.255" + }, + "11": { + "timestamp": "2025-10-31 09:08:47", + "action": "管理员登录", + "ip": "113.87.137.255" + }, + "12": { + "timestamp": "2025-10-30 21:05:23", + "action": "管理员登录", + "ip": "113.87.139.170" + }, + "13": { + "timestamp": "2025-10-30 17:28:24", + "action": "管理员注销", + "ip": "113.87.137.255" + }, + "14": { + "timestamp": "2025-10-30 17:14:21", + "action": "管理员登录", + "ip": "113.87.137.255" + }, + "operations": [ + { + "id": "6902c8ca52d34", + "type": "add", + "fund_code": "123123", + "channel": "0", + "investment": 1000, + "details": "添加基金", + "timestamp": 1761790154, + "date": "2025-10-30 10:09:14" + }, + { + "id": "6902c8d11928c", + "type": "delete", + "fund_code": "123123", + "channel": "0", + "investment": 1000, + "details": "删除基金", + "timestamp": 1761790161, + "date": "2025-10-30 10:09:21" + }, + { + "id": "690303ba12e0b", + "type": "delete", + "fund_code": "017560", + "channel": "1", + "investment": 1000, + "details": "删除基金", + "timestamp": 1761805242, + "date": "2025-10-30 14:20:42" + }, + { + "id": "690aeffc99bf3", + "type": "delete", + "fund_code": "003766", + "channel": "0", + "investment": 10000, + "details": "删除基金", + "timestamp": 1762324476, + "date": "2025-11-05 14:34:36" + }, + { + "id": "690af008d8578", + "type": "delete", + "fund_code": "018994", + "channel": "0", + "investment": 1000, + "details": "删除基金", + "timestamp": 1762324488, + "date": "2025-11-05 14:34:48" + }, + { + "id": "690af00b6106c", + "type": "delete", + "fund_code": "003567", + "channel": "0", + "investment": 1000, + "details": "删除基金", + "timestamp": 1762324491, + "date": "2025-11-05 14:34:51" + }, + { + "id": "690af00e849e6", + "type": "delete", + "fund_code": "014320", + "channel": "1", + "investment": 1000, + "details": "删除基金", + "timestamp": 1762324494, + "date": "2025-11-05 14:34:54" + }, + { + "id": "690af0623f151", + "type": "delete", + "fund_code": "001071", + "channel": "0", + "investment": 1000, + "details": "删除基金", + "timestamp": 1762324578, + "date": "2025-11-05 14:36:18" + }, + { + "id": "690af06459fbc", + "type": "delete", + "fund_code": "004206", + "channel": "0", + "investment": 1000, + "details": "删除基金", + "timestamp": 1762324580, + "date": "2025-11-05 14:36:20" + }, + { + "id": "690af06641d8c", + "type": "delete", + "fund_code": "019432", + "channel": "0", + "investment": 1000, + "details": "删除基金", + "timestamp": 1762324582, + "date": "2025-11-05 14:36:22" + }, + { + "id": "690af0683bed6", + "type": "delete", + "fund_code": "003598", + "channel": "0", + "investment": 1000, + "details": "删除基金", + "timestamp": 1762324584, + "date": "2025-11-05 14:36:24" + }, + { + "id": "690becaa0e959", + "type": "add", + "fund_code": "017560", + "channel": "1", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762389162, + "date": "2025-11-06 08:32:42" + }, + { + "id": "6912cce74b4c7", + "type": "add", + "fund_code": "011815", + "channel": "1", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762839783, + "date": "2025-11-11 13:43:03" + }, + { + "id": "6912cd0a18557", + "type": "update", + "fund_code": "011815", + "channel": "2", + "investment": 1000, + "details": "更新基金: 投资金额 1000 -> 1000", + "timestamp": 1762839818, + "date": "2025-11-11 13:43:38" + }, + { + "id": "6912cd214bbaa", + "type": "add", + "fund_code": "003598", + "channel": "2", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762839841, + "date": "2025-11-11 13:44:01" + }, + { + "id": "6912cd2e79b67", + "type": "add", + "fund_code": "004206", + "channel": "2", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762839854, + "date": "2025-11-11 13:44:14" + }, + { + "id": "6912cd3839737", + "type": "add", + "fund_code": "022365", + "channel": "2", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762839864, + "date": "2025-11-11 13:44:24" + }, + { + "id": "6912cd4373db8", + "type": "add", + "fund_code": "022364", + "channel": "2", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762839875, + "date": "2025-11-11 13:44:35" + }, + { + "id": "6912cd51cdd4c", + "type": "add", + "fund_code": "011103", + "channel": "2", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762839889, + "date": "2025-11-11 13:44:49" + }, + { + "id": "6912cd644111a", + "type": "add", + "fund_code": "025825", + "channel": "0", + "investment": 1000, + "details": "添加基金", + "timestamp": 1762839908, + "date": "2025-11-11 13:45:08" + }, + { + "id": "693b8bfaa63d0", + "type": "更新邮箱配置", + "fund_code": { + "smtp_server": "smtp.qq.com", + "username": "768057005@qq.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765510138, + "date": "2025-12-12 04:28:58" + }, + { + "id": "693b8c04e98c3", + "type": "添加邮箱收件人", + "fund_code": { + "email": "test@example.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765510148, + "date": "2025-12-12 04:29:08" + }, + { + "id": "693b8cd247748", + "type": "更新邮箱配置", + "fund_code": { + "smtp_server": "smtp.qq.com", + "username": "768057005@qq.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765510354, + "date": "2025-12-12 04:32:34" + }, + { + "id": "693b8d0368150", + "type": "更新邮箱配置", + "fund_code": { + "smtp_server": "smtp.qq.com", + "username": "768057005@qq.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765510403, + "date": "2025-12-12 04:33:23" + }, + { + "id": "693b8d7531808", + "type": "更新邮箱配置", + "fund_code": { + "smtp_server": "smtp.qq.com", + "username": "768057005@qq.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765510517, + "date": "2025-12-12 04:35:17" + }, + { + "id": "693b8da74c31d", + "type": "更新邮箱配置", + "fund_code": { + "smtp_server": "smtp.qq.com", + "username": "768057005@qq.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765510567, + "date": "2025-12-12 04:36:07" + }, + { + "id": "693b8dd0211df", + "type": "更新邮箱配置", + "fund_code": { + "smtp_server": "smtp.qq.com", + "username": "768057005@qq.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765510608, + "date": "2025-12-12 04:36:48" + }, + { + "id": "693b9071c066e", + "type": "添加邮箱收件人", + "fund_code": { + "email": "1693710928@qq.com" + }, + "channel": null, + "investment": null, + "details": "", + "timestamp": 1765511281, + "date": "2025-12-12 04:48:01" + } + ] +} \ No newline at end of file diff --git a/data/recommend_logs.json b/data/recommend_logs.json new file mode 100644 index 0000000..ab4f591 --- /dev/null +++ b/data/recommend_logs.json @@ -0,0 +1,9 @@ +[ + { + "action": "recommend_fund", + "timestamp": "2025-10-31 16:33:53", + "fund_code": "005965", + "fund_name": "\u5b89\u4fe1\u4e2d\u8bc1500\u6307\u6570\u589e\u5f3aA", + "ip": "113.87.137.255" + } +] \ No newline at end of file diff --git a/data/recommended_funds.json b/data/recommended_funds.json new file mode 100644 index 0000000..124d59e --- /dev/null +++ b/data/recommended_funds.json @@ -0,0 +1,11 @@ +[ + { + "fund_code": "005965", + "ip": "113.87.137.255", + "timestamp": "2025-10-31 16:33:53", + "channel": "网站推荐", + "amount": 1000, + "status": "pending", + "fund_name": "安信中证500指数增强A" + } +] \ No newline at end of file diff --git a/data/stats.json b/data/stats.json new file mode 100644 index 0000000..22469c6 --- /dev/null +++ b/data/stats.json @@ -0,0 +1,95 @@ +{ + "total_visits": 618, + "today_visits": 5, + "unique_visitors": 64, + "last_reset": "2025-12-12", + "daily_stats": { + "2025-10-28": 55, + "2025-10-29": 195, + "2025-10-30": 206, + "2025-10-31": 18, + "2025-11-01": 4, + "2025-11-02": 2, + "2025-11-03": 12, + "2025-11-04": 6, + "2025-11-05": 11, + "2025-11-06": 9, + "2025-11-07": 7, + "2025-11-10": 5, + "2025-11-11": 11, + "2025-11-12": 10, + "2025-11-13": 10, + "2025-11-14": 10, + "2025-11-15": 1, + "2025-11-17": 5, + "2025-11-18": 1, + "2025-12-12": 5 + }, + "unique_ips": [ + "113.87.138.21", + "113.84.209.129", + "113.87.137.255", + "23.27.145.18", + "112.97.82.77", + "113.84.82.28", + "178.239.124.106", + "23.27.145.162", + "14.116.140.45", + "18.207.197.68", + "14.116.140.24", + "183.211.90.28", + "113.201.15.72", + "42.232.246.99", + "81.71.101.51", + "113.84.138.211", + "14.116.140.135", + "113.84.42.84", + "113.87.139.170", + "180.101.245.251", + "220.196.160.101", + "103.219.192.68", + "112.97.84.103", + "149.57.180.103", + "113.84.8.124", + "23.27.145.45", + "66.249.75.226", + "27.38.135.37", + "205.169.39.29", + "34.123.170.104", + "205.169.39.25", + "113.87.139.206", + "205.169.39.148", + "112.97.87.32", + "113.84.192.103", + "113.87.138.191", + "146.70.185.32", + "14.116.140.239", + "113.87.137.193", + "220.196.160.146", + "110.249.201.169", + "113.84.33.37", + "14.116.140.86", + "113.87.136.77", + "180.101.244.13", + "180.101.244.15", + "14.116.140.42", + "113.84.83.15", + "113.87.139.184", + "113.84.193.224", + "129.211.162.158", + "113.87.139.12", + "113.84.169.220", + "14.31.17.219", + "220.196.160.144", + "14.31.17.35", + "112.97.80.134", + "66.249.77.193", + "35.165.215.140", + "113.87.139.101", + "113.87.136.32", + "205.169.39.16", + "113.84.33.13", + "::1" + ], + "today_unique_visitors": 1 +} \ No newline at end of file diff --git a/data/visits.json b/data/visits.json new file mode 100644 index 0000000..bb06bd1 --- /dev/null +++ b/data/visits.json @@ -0,0 +1,4328 @@ +[ + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624054, + "date": "2025-10-28 12:00:54", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624067, + "date": "2025-10-28 12:01:07", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624076, + "date": "2025-10-28 12:01:16", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624085, + "date": "2025-10-28 12:01:25", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624094, + "date": "2025-10-28 12:01:34", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624103, + "date": "2025-10-28 12:01:43", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624103, + "date": "2025-10-28 12:01:43", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624355, + "date": "2025-10-28 12:05:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624655, + "date": "2025-10-28 12:10:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761624955, + "date": "2025-10-28 12:15:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761625255, + "date": "2025-10-28 12:20:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761625555, + "date": "2025-10-28 12:25:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.84.209.129", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761625683, + "date": "2025-10-28 12:28:03", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "113.84.209.129", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761625695, + "date": "2025-10-28 12:28:15", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "113.84.209.129", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761625705, + "date": "2025-10-28 12:28:25", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761625855, + "date": "2025-10-28 12:30:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761626155, + "date": "2025-10-28 12:35:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761626455, + "date": "2025-10-28 12:40:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761626755, + "date": "2025-10-28 12:45:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761627055, + "date": "2025-10-28 12:50:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761627355, + "date": "2025-10-28 12:55:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761627655, + "date": "2025-10-28 13:00:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761627955, + "date": "2025-10-28 13:05:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761628255, + "date": "2025-10-28 13:10:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761628555, + "date": "2025-10-28 13:15:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761628855, + "date": "2025-10-28 13:20:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761629155, + "date": "2025-10-28 13:25:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761629306, + "date": "2025-10-28 13:28:26", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761629306, + "date": "2025-10-28 13:28:26", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761629455, + "date": "2025-10-28 13:30:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761629755, + "date": "2025-10-28 13:35:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761630055, + "date": "2025-10-28 13:40:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761630355, + "date": "2025-10-28 13:45:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "23.27.145.18", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36", + "timestamp": 1761630482, + "date": "2025-10-28 13:48:02", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "23.27.145.18", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36", + "timestamp": 1761630482, + "date": "2025-10-28 13:48:02", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761630655, + "date": "2025-10-28 13:50:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761630681, + "date": "2025-10-28 13:51:21", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761630884, + "date": "2025-10-28 13:54:44", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761631054, + "date": "2025-10-28 13:57:34", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761631105, + "date": "2025-10-28 13:58:25", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761631360, + "date": "2025-10-28 14:02:40", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761631407, + "date": "2025-10-28 14:03:27", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761631448, + "date": "2025-10-28 14:04:08", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761631487, + "date": "2025-10-28 14:04:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761631619, + "date": "2025-10-28 14:06:59", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761631662, + "date": "2025-10-28 14:07:42", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "112.97.82.77", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1761631824, + "date": "2025-10-28 14:10:24", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761631920, + "date": "2025-10-28 14:12:00", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761632183, + "date": "2025-10-28 14:16:23", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761632220, + "date": "2025-10-28 14:17:00", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761632520, + "date": "2025-10-28 14:22:00", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761632595, + "date": "2025-10-28 14:23:15", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "178.239.124.106", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761632674, + "date": "2025-10-28 14:24:34", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761632909, + "date": "2025-10-28 14:28:29", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761632957, + "date": "2025-10-28 14:29:17", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761633257, + "date": "2025-10-28 14:34:17", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761633557, + "date": "2025-10-28 14:39:17", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761633857, + "date": "2025-10-28 14:44:17", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761634075, + "date": "2025-10-28 14:47:55", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761634157, + "date": "2025-10-28 14:49:17", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761634457, + "date": "2025-10-28 14:54:17", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761634562, + "date": "2025-10-28 14:56:02", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761634862, + "date": "2025-10-28 15:01:02", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761635162, + "date": "2025-10-28 15:06:02", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761636303, + "date": "2025-10-28 15:25:03", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761636604, + "date": "2025-10-28 15:30:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761636605, + "date": "2025-10-28 15:30:05", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761636904, + "date": "2025-10-28 15:35:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761637204, + "date": "2025-10-28 15:40:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761637504, + "date": "2025-10-28 15:45:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761637804, + "date": "2025-10-28 15:50:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761638104, + "date": "2025-10-28 15:55:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761638106, + "date": "2025-10-28 15:55:06", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761638404, + "date": "2025-10-28 16:00:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761638704, + "date": "2025-10-28 16:05:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761639005, + "date": "2025-10-28 16:10:05", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761639006, + "date": "2025-10-28 16:10:06", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761639304, + "date": "2025-10-28 16:15:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761639604, + "date": "2025-10-28 16:20:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761639904, + "date": "2025-10-28 16:25:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761639905, + "date": "2025-10-28 16:25:05", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761640204, + "date": "2025-10-28 16:30:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761640504, + "date": "2025-10-28 16:35:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761640804, + "date": "2025-10-28 16:40:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761640806, + "date": "2025-10-28 16:40:06", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761641104, + "date": "2025-10-28 16:45:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761641404, + "date": "2025-10-28 16:50:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761641704, + "date": "2025-10-28 16:55:04", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761641706, + "date": "2025-10-28 16:55:06", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "23.27.145.162", + "user_agent": "Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36", + "timestamp": 1761643284, + "date": "2025-10-28 17:21:24", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761703824, + "date": "2025-10-29 10:10:24", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761704125, + "date": "2025-10-29 10:15:25", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761704126, + "date": "2025-10-29 10:15:26", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761704425, + "date": "2025-10-29 10:20:25", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761704715, + "date": "2025-10-29 10:25:15", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "14.116.140.45", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761704715, + "date": "2025-10-29 10:25:15", + "referer": "http:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761706306, + "date": "2025-10-29 10:51:46", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761706433, + "date": "2025-10-29 10:53:53", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761706442, + "date": "2025-10-29 10:54:02", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761706450, + "date": "2025-10-29 10:54:10", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761706607, + "date": "2025-10-29 10:56:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761706609, + "date": "2025-10-29 10:56:49", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761706907, + "date": "2025-10-29 11:01:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "18.207.197.68", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) HeadlessChrome\/138.0.7204.23 Safari\/537.36", + "timestamp": 1761707158, + "date": "2025-10-29 11:05:58", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761707206, + "date": "2025-10-29 11:06:46", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761707507, + "date": "2025-10-29 11:11:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761707509, + "date": "2025-10-29 11:11:49", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761707660, + "date": "2025-10-29 11:14:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761707807, + "date": "2025-10-29 11:16:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761707850, + "date": "2025-10-29 11:17:30", + "referer": "https:\/\/tsama.cn\/index.html" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761707852, + "date": "2025-10-29 11:17:32", + "referer": "https:\/\/tsama.cn\/index.html" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761707853, + "date": "2025-10-29 11:17:33", + "referer": "https:\/\/tsama.cn\/index.html" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761708117, + "date": "2025-10-29 11:21:57", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761708407, + "date": "2025-10-29 11:26:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761708547, + "date": "2025-10-29 11:29:07", + "referer": "https:\/\/tsama.cn\/index.html" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761708707, + "date": "2025-10-29 11:31:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761708950, + "date": "2025-10-29 11:35:50", + "referer": "https:\/\/tsama.cn\/index.html" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761709007, + "date": "2025-10-29 11:36:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761709079, + "date": "2025-10-29 11:37:59", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761709306, + "date": "2025-10-29 11:41:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761709307, + "date": "2025-10-29 11:41:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761709308, + "date": "2025-10-29 11:41:48", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761709446, + "date": "2025-10-29 11:44:06", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761709463, + "date": "2025-10-29 11:44:23", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761709606, + "date": "2025-10-29 11:46:46", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "14.116.140.24", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761709664, + "date": "2025-10-29 11:47:44", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761709665, + "date": "2025-10-29 11:47:45", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761709907, + "date": "2025-10-29 11:51:47", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761710206, + "date": "2025-10-29 11:56:46", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761710309, + "date": "2025-10-29 11:58:29", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.24", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761710309, + "date": "2025-10-29 11:58:29", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761716174, + "date": "2025-10-29 13:36:14", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761716475, + "date": "2025-10-29 13:41:15", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761716775, + "date": "2025-10-29 13:46:15", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761717076, + "date": "2025-10-29 13:51:16", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761722197, + "date": "2025-10-29 15:16:37", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761726539, + "date": "2025-10-29 16:28:59", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761727326, + "date": "2025-10-29 16:42:06", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761727365, + "date": "2025-10-29 16:42:45", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761727826, + "date": "2025-10-29 16:50:26", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761727966, + "date": "2025-10-29 16:52:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761727997, + "date": "2025-10-29 16:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761728297, + "date": "2025-10-29 16:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761728599, + "date": "2025-10-29 17:03:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761728600, + "date": "2025-10-29 17:03:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761728812, + "date": "2025-10-29 17:06:52", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761728897, + "date": "2025-10-29 17:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761729040, + "date": "2025-10-29 17:10:40", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761729197, + "date": "2025-10-29 17:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761729341, + "date": "2025-10-29 17:15:41", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761729497, + "date": "2025-10-29 17:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761729511, + "date": "2025-10-29 17:18:31", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761729521, + "date": "2025-10-29 17:18:41", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761729555, + "date": "2025-10-29 17:19:15", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761729797, + "date": "2025-10-29 17:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761729856, + "date": "2025-10-29 17:24:16", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730053, + "date": "2025-10-29 17:27:33", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761730097, + "date": "2025-10-29 17:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730156, + "date": "2025-10-29 17:29:16", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761730397, + "date": "2025-10-29 17:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730453, + "date": "2025-10-29 17:34:13", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761730698, + "date": "2025-10-29 17:38:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730755, + "date": "2025-10-29 17:39:15", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730928, + "date": "2025-10-29 17:42:08", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730938, + "date": "2025-10-29 17:42:18", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730941, + "date": "2025-10-29 17:42:21", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761730946, + "date": "2025-10-29 17:42:26", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761730997, + "date": "2025-10-29 17:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761731055, + "date": "2025-10-29 17:44:15", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761731177, + "date": "2025-10-29 17:46:17", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761731297, + "date": "2025-10-29 17:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761731494, + "date": "2025-10-29 17:51:34", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761731527, + "date": "2025-10-29 17:52:07", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761731598, + "date": "2025-10-29 17:53:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761731600, + "date": "2025-10-29 17:53:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761731600, + "date": "2025-10-29 17:53:20", + "referer": "http:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761731617, + "date": "2025-10-29 17:53:37", + "referer": "http:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761731625, + "date": "2025-10-29 17:53:45", + "referer": "http:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.82.28", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761731648, + "date": "2025-10-29 17:54:08", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761731897, + "date": "2025-10-29 17:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761732197, + "date": "2025-10-29 18:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761732497, + "date": "2025-10-29 18:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761732498, + "date": "2025-10-29 18:08:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761732797, + "date": "2025-10-29 18:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761733097, + "date": "2025-10-29 18:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761733400, + "date": "2025-10-29 18:23:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761733697, + "date": "2025-10-29 18:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761733997, + "date": "2025-10-29 18:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761734297, + "date": "2025-10-29 18:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761734597, + "date": "2025-10-29 18:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761734598, + "date": "2025-10-29 18:43:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761734897, + "date": "2025-10-29 18:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761735197, + "date": "2025-10-29 18:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761735497, + "date": "2025-10-29 18:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761735502, + "date": "2025-10-29 18:58:22", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761735797, + "date": "2025-10-29 19:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761736097, + "date": "2025-10-29 19:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761736397, + "date": "2025-10-29 19:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761736399, + "date": "2025-10-29 19:13:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761736697, + "date": "2025-10-29 19:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761736997, + "date": "2025-10-29 19:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761737298, + "date": "2025-10-29 19:28:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761737597, + "date": "2025-10-29 19:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761737897, + "date": "2025-10-29 19:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761737899, + "date": "2025-10-29 19:38:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761738197, + "date": "2025-10-29 19:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761738498, + "date": "2025-10-29 19:48:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761738499, + "date": "2025-10-29 19:48:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761738797, + "date": "2025-10-29 19:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761739097, + "date": "2025-10-29 19:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761739397, + "date": "2025-10-29 20:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761739400, + "date": "2025-10-29 20:03:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761739697, + "date": "2025-10-29 20:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761739997, + "date": "2025-10-29 20:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761740297, + "date": "2025-10-29 20:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761740298, + "date": "2025-10-29 20:18:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761740597, + "date": "2025-10-29 20:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761740897, + "date": "2025-10-29 20:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761740900, + "date": "2025-10-29 20:28:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761741197, + "date": "2025-10-29 20:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761741497, + "date": "2025-10-29 20:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761741797, + "date": "2025-10-29 20:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761741801, + "date": "2025-10-29 20:43:21", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761742097, + "date": "2025-10-29 20:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761742397, + "date": "2025-10-29 20:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761742697, + "date": "2025-10-29 20:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761742699, + "date": "2025-10-29 20:58:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761742997, + "date": "2025-10-29 21:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761743297, + "date": "2025-10-29 21:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761743299, + "date": "2025-10-29 21:08:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761743597, + "date": "2025-10-29 21:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761743897, + "date": "2025-10-29 21:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761744198, + "date": "2025-10-29 21:23:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761744497, + "date": "2025-10-29 21:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761744800, + "date": "2025-10-29 21:33:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761744801, + "date": "2025-10-29 21:33:21", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761745097, + "date": "2025-10-29 21:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761745397, + "date": "2025-10-29 21:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761745697, + "date": "2025-10-29 21:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761745706, + "date": "2025-10-29 21:48:26", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761745997, + "date": "2025-10-29 21:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761746297, + "date": "2025-10-29 21:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761746597, + "date": "2025-10-29 22:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761746601, + "date": "2025-10-29 22:03:21", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761746897, + "date": "2025-10-29 22:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761746948, + "date": "2025-10-29 22:09:08", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761747091, + "date": "2025-10-29 22:11:31", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761747197, + "date": "2025-10-29 22:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "183.211.90.28", + "user_agent": "Mozilla\/5.0 (Linux; Android 14; 22041216UC Build\/UP1A.231005.007; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/121.0.6167.71 MQQBrowser\/6.2 TBS\/047919 Mobile Safari\/537.36 V1_AND_SQ_9.2.15_11480_YYB_D QQ\/9.2.15.29600 NetType\/WIFI WebP\/0.3.0 AppId\/537312181 Pixel\/1080 StatusBarHeight\/100 SimpleUISwitch\/0 QQTheme\/1000 StudyMode\/0 CurrentMode\/0 CurrentFontScale\/1.0 GlobalDensityScale\/0.9818182 AllowLandscape\/false InMagicWin\/0", + "timestamp": 1761747214, + "date": "2025-10-29 22:13:34", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761747497, + "date": "2025-10-29 22:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Linux; Android 15; 23116PN5BC Build\/AQ3A.240627.003; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/121.0.6167.71 MQQBrowser\/6.2 TBS\/047907 Mobile Safari\/537.36 V1_AND_SQ_9.2.20_11650_YYB_D QQ\/9.2.20.30025 NetType\/WIFI WebP\/0.3.0 AppId\/537315791 Pixel\/1080 StatusBarHeight\/110 SimpleUISwitch\/0 QQTheme\/1000 StudyMode\/0 CurrentMode\/0 CurrentFontScale\/0.87 GlobalDensityScale\/1.0285715 AllowLandscape\/false InMagicWin\/0", + "timestamp": 1761747605, + "date": "2025-10-29 22:20:05", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "183.211.90.28", + "user_agent": "Mozilla\/5.0 (Linux; Android 14; 22041216UC Build\/UP1A.231005.007; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/121.0.6167.71 MQQBrowser\/6.2 TBS\/047919 Mobile Safari\/537.36 V1_AND_SQ_9.2.15_11480_YYB_D QQ\/9.2.15.29600 NetType\/WIFI WebP\/0.3.0 AppId\/537312181 Pixel\/1080 StatusBarHeight\/100 SimpleUISwitch\/0 QQTheme\/1000 StudyMode\/0 CurrentMode\/0 CurrentFontScale\/1.0 GlobalDensityScale\/0.9818182 AllowLandscape\/false InMagicWin\/0", + "timestamp": 1761747631, + "date": "2025-10-29 22:20:31", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.201.15.72", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_6_2 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Mobile\/15E148 QQ\/9.2.25.606 V1_IPH_SQ_9.2.25_1_APP_A Pixel\/1179 MiniAppEnable SimpleUISwitch\/0 StudyMode\/0 CurrentMode\/0 CurrentFontScale\/1.000000 QQTheme\/1000 AppId\/537317157 Core\/WKWebView Device\/Apple(iPhone X) NetType\/WIFI QBWebViewType\/1 WKType\/1", + "timestamp": 1761747631, + "date": "2025-10-29 22:20:31", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.201.15.72", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_6_2 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Mobile\/15E148 QQ\/9.2.25.606 V1_IPH_SQ_9.2.25_1_APP_A Pixel\/1179 MiniAppEnable SimpleUISwitch\/0 StudyMode\/0 CurrentMode\/0 CurrentFontScale\/1.000000 QQTheme\/1000 AppId\/537317157 Core\/WKWebView Device\/Apple(iPhone X) NetType\/WIFI QBWebViewType\/1 WKType\/1", + "timestamp": 1761747633, + "date": "2025-10-29 22:20:33", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.201.15.72", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_6_2 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Mobile\/15E148 QQ\/9.2.25.606 V1_IPH_SQ_9.2.25_1_APP_A Pixel\/1179 MiniAppEnable SimpleUISwitch\/0 StudyMode\/0 CurrentMode\/0 CurrentFontScale\/1.000000 QQTheme\/1000 AppId\/537317157 Core\/WKWebView Device\/Apple(iPhone X) NetType\/WIFI QBWebViewType\/1 WKType\/1", + "timestamp": 1761747634, + "date": "2025-10-29 22:20:34", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "42.232.246.99", + "user_agent": "Mozilla\/5.0 (Linux; Android 15; V2307A Build\/AP3A.240905.015.A1; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/121.0.6167.71 MQQBrowser\/6.2 TBS\/047919 Mobile Safari\/537.36 V1_AND_SQ_9.2.20_11650_YYB_D QQ\/9.2.20.30025 NetType\/WIFI WebP\/0.3.0 AppId\/537315788 Pixel\/1260 StatusBarHeight\/133 SimpleUISwitch\/0 QQTheme\/1000 StudyMode\/0 CurrentMode\/0 CurrentFontScale\/1.0 GlobalDensityScale\/0.90000004 AllowLandscape\/false InMagicWin\/0", + "timestamp": 1761747642, + "date": "2025-10-29 22:20:42", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761747797, + "date": "2025-10-29 22:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761747801, + "date": "2025-10-29 22:23:21", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761747878, + "date": "2025-10-29 22:24:38", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761748097, + "date": "2025-10-29 22:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761748287, + "date": "2025-10-29 22:31:27", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761748397, + "date": "2025-10-29 22:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761748698, + "date": "2025-10-29 22:38:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761748997, + "date": "2025-10-29 22:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761749297, + "date": "2025-10-29 22:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761749598, + "date": "2025-10-29 22:53:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761749599, + "date": "2025-10-29 22:53:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761749897, + "date": "2025-10-29 22:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761750197, + "date": "2025-10-29 23:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761750498, + "date": "2025-10-29 23:08:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761750797, + "date": "2025-10-29 23:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761751097, + "date": "2025-10-29 23:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761751108, + "date": "2025-10-29 23:18:28", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.21", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761751112, + "date": "2025-10-29 23:18:32", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761751398, + "date": "2025-10-29 23:23:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761751697, + "date": "2025-10-29 23:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761751701, + "date": "2025-10-29 23:28:21", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761751997, + "date": "2025-10-29 23:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761752297, + "date": "2025-10-29 23:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761752598, + "date": "2025-10-29 23:43:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761752599, + "date": "2025-10-29 23:43:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761752897, + "date": "2025-10-29 23:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761753197, + "date": "2025-10-29 23:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761753199, + "date": "2025-10-29 23:53:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761753497, + "date": "2025-10-29 23:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761753797, + "date": "2025-10-30 00:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761754098, + "date": "2025-10-30 00:08:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761754397, + "date": "2025-10-30 00:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761754697, + "date": "2025-10-30 00:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761754997, + "date": "2025-10-30 00:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761755297, + "date": "2025-10-30 00:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761755597, + "date": "2025-10-30 00:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761755897, + "date": "2025-10-30 00:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761755898, + "date": "2025-10-30 00:38:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761756197, + "date": "2025-10-30 00:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761756497, + "date": "2025-10-30 00:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761756797, + "date": "2025-10-30 00:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761757097, + "date": "2025-10-30 00:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761757102, + "date": "2025-10-30 00:58:22", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761757397, + "date": "2025-10-30 01:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761757697, + "date": "2025-10-30 01:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761757997, + "date": "2025-10-30 01:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761757998, + "date": "2025-10-30 01:13:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761758297, + "date": "2025-10-30 01:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761758597, + "date": "2025-10-30 01:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761758898, + "date": "2025-10-30 01:28:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761759197, + "date": "2025-10-30 01:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "81.71.101.51", + "user_agent": "Mozilla\/5.0 (Linux; Android 11; Redmi Note 8 Pro Build\/RP1A.200720.011; wv) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/89.0.4389.72 MQQBrowser\/6.2 TBS\/045913 Mobile Safari\/537.36 V1_AND_SQ_8.8.68_2538_YYB_D A_8086800 QQ\/8.8.68.7265 NetType\/WIFI WebP\/0.3.0 Pixel\/1080 StatusBarHeight\/76 SimpleUISwitch\/1 QQTheme\/2971 InMagicWin\/0 StudyMode\/0 CurrentMode\/1 CurrentFontScale\/1.0 GlobalDensityScale\/0.9818182 AppId\/537112567 Edg\/98.0.4758.102", + "timestamp": 1761759308, + "date": "2025-10-30 01:35:08", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761759497, + "date": "2025-10-30 01:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761759798, + "date": "2025-10-30 01:43:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761760097, + "date": "2025-10-30 01:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761760397, + "date": "2025-10-30 01:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761760400, + "date": "2025-10-30 01:53:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761760697, + "date": "2025-10-30 01:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761760997, + "date": "2025-10-30 02:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761761297, + "date": "2025-10-30 02:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761761299, + "date": "2025-10-30 02:08:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761761597, + "date": "2025-10-30 02:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761761897, + "date": "2025-10-30 02:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761762198, + "date": "2025-10-30 02:23:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761762497, + "date": "2025-10-30 02:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761762797, + "date": "2025-10-30 02:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761763097, + "date": "2025-10-30 02:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761763099, + "date": "2025-10-30 02:38:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761763397, + "date": "2025-10-30 02:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761763697, + "date": "2025-10-30 02:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761763699, + "date": "2025-10-30 02:48:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761763997, + "date": "2025-10-30 02:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761764297, + "date": "2025-10-30 02:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761764598, + "date": "2025-10-30 03:03:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761764897, + "date": "2025-10-30 03:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761765197, + "date": "2025-10-30 03:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761765497, + "date": "2025-10-30 03:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761765498, + "date": "2025-10-30 03:18:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761765797, + "date": "2025-10-30 03:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761766097, + "date": "2025-10-30 03:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761766398, + "date": "2025-10-30 03:33:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761766704, + "date": "2025-10-30 03:38:24", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761766704, + "date": "2025-10-30 03:38:24", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761766998, + "date": "2025-10-30 03:43:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761767297, + "date": "2025-10-30 03:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761767598, + "date": "2025-10-30 03:53:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761767897, + "date": "2025-10-30 03:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761768197, + "date": "2025-10-30 04:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761768497, + "date": "2025-10-30 04:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761768499, + "date": "2025-10-30 04:08:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761768797, + "date": "2025-10-30 04:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761769097, + "date": "2025-10-30 04:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761769398, + "date": "2025-10-30 04:23:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761769697, + "date": "2025-10-30 04:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761769997, + "date": "2025-10-30 04:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761770298, + "date": "2025-10-30 04:38:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761770299, + "date": "2025-10-30 04:38:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761770597, + "date": "2025-10-30 04:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761770897, + "date": "2025-10-30 04:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761771198, + "date": "2025-10-30 04:53:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761771497, + "date": "2025-10-30 04:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761771797, + "date": "2025-10-30 05:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761772097, + "date": "2025-10-30 05:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761772397, + "date": "2025-10-30 05:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761772400, + "date": "2025-10-30 05:13:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761772697, + "date": "2025-10-30 05:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761772997, + "date": "2025-10-30 05:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761773298, + "date": "2025-10-30 05:28:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761773300, + "date": "2025-10-30 05:28:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761773597, + "date": "2025-10-30 05:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761773897, + "date": "2025-10-30 05:38:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761774197, + "date": "2025-10-30 05:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761774199, + "date": "2025-10-30 05:43:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761774497, + "date": "2025-10-30 05:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761774797, + "date": "2025-10-30 05:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761775098, + "date": "2025-10-30 05:58:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761775397, + "date": "2025-10-30 06:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761775697, + "date": "2025-10-30 06:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761775998, + "date": "2025-10-30 06:13:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761775999, + "date": "2025-10-30 06:13:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761776297, + "date": "2025-10-30 06:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761776597, + "date": "2025-10-30 06:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761776897, + "date": "2025-10-30 06:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761776899, + "date": "2025-10-30 06:28:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761777197, + "date": "2025-10-30 06:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761777498, + "date": "2025-10-30 06:38:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761777797, + "date": "2025-10-30 06:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761778097, + "date": "2025-10-30 06:48:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761778098, + "date": "2025-10-30 06:48:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761778397, + "date": "2025-10-30 06:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761778698, + "date": "2025-10-30 06:58:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761778997, + "date": "2025-10-30 07:03:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761778999, + "date": "2025-10-30 07:03:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761779297, + "date": "2025-10-30 07:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761779597, + "date": "2025-10-30 07:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761779897, + "date": "2025-10-30 07:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761779899, + "date": "2025-10-30 07:18:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761780197, + "date": "2025-10-30 07:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761780497, + "date": "2025-10-30 07:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761780804, + "date": "2025-10-30 07:33:24", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761780804, + "date": "2025-10-30 07:33:24", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761781098, + "date": "2025-10-30 07:38:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761781397, + "date": "2025-10-30 07:43:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761781698, + "date": "2025-10-30 07:48:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761781699, + "date": "2025-10-30 07:48:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761781997, + "date": "2025-10-30 07:53:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761782297, + "date": "2025-10-30 07:58:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.24", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761782808, + "date": "2025-10-30 08:06:48", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.138.211", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761782811, + "date": "2025-10-30 08:06:51", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.138.211", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761782821, + "date": "2025-10-30 08:07:01", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761782821, + "date": "2025-10-30 08:07:01", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761782897, + "date": "2025-10-30 08:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761782907, + "date": "2025-10-30 08:08:27", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761783197, + "date": "2025-10-30 08:13:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761783497, + "date": "2025-10-30 08:18:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761783797, + "date": "2025-10-30 08:23:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761783800, + "date": "2025-10-30 08:23:20", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761784097, + "date": "2025-10-30 08:28:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761784397, + "date": "2025-10-30 08:33:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761784681, + "date": "2025-10-30 08:38:01", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761784726, + "date": "2025-10-30 08:38:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761787833, + "date": "2025-10-30 09:30:33", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788446, + "date": "2025-10-30 09:40:46", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788446, + "date": "2025-10-30 09:40:46", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788457, + "date": "2025-10-30 09:40:57", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788458, + "date": "2025-10-30 09:40:58", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788461, + "date": "2025-10-30 09:41:01", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788465, + "date": "2025-10-30 09:41:05", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788473, + "date": "2025-10-30 09:41:13", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788480, + "date": "2025-10-30 09:41:20", + "referer": "https:\/\/tsama.cn\/index.html" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761788641, + "date": "2025-10-30 09:44:01", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.170", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761790165, + "date": "2025-10-30 10:09:25", + "referer": "https:\/\/tsama.cn\/admin.html" + }, + { + "ip": "113.87.139.170", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761790170, + "date": "2025-10-30 10:09:30", + "referer": "https:\/\/tsama.cn\/index.html" + }, + { + "ip": "180.101.245.251", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1761793567, + "date": "2025-10-30 11:06:07", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "220.196.160.101", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1761793567, + "date": "2025-10-30 11:06:07", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761793952, + "date": "2025-10-30 11:12:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "103.219.192.68", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761794686, + "date": "2025-10-30 11:24:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761794987, + "date": "2025-10-30 11:29:47", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761795287, + "date": "2025-10-30 11:34:47", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761795587, + "date": "2025-10-30 11:39:47", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761795888, + "date": "2025-10-30 11:44:48", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761796768, + "date": "2025-10-30 11:59:28", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "112.97.84.103", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1761802027, + "date": "2025-10-30 13:27:07", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761802368, + "date": "2025-10-30 13:32:48", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761802669, + "date": "2025-10-30 13:37:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761802969, + "date": "2025-10-30 13:42:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761803269, + "date": "2025-10-30 13:47:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761803569, + "date": "2025-10-30 13:52:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761803869, + "date": "2025-10-30 13:57:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761804169, + "date": "2025-10-30 14:02:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761804469, + "date": "2025-10-30 14:07:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761804769, + "date": "2025-10-30 14:12:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "112.97.84.103", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1761804787, + "date": "2025-10-30 14:13:07", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "112.97.84.103", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1761804788, + "date": "2025-10-30 14:13:08", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761805068, + "date": "2025-10-30 14:17:48", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761805203, + "date": "2025-10-30 14:20:03", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761805253, + "date": "2025-10-30 14:20:53", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761805554, + "date": "2025-10-30 14:25:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761805854, + "date": "2025-10-30 14:30:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761806154, + "date": "2025-10-30 14:35:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761806158, + "date": "2025-10-30 14:35:58", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761806454, + "date": "2025-10-30 14:40:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761806754, + "date": "2025-10-30 14:45:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761807054, + "date": "2025-10-30 14:50:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761807354, + "date": "2025-10-30 14:55:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761807355, + "date": "2025-10-30 14:55:55", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761807654, + "date": "2025-10-30 15:00:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761807891, + "date": "2025-10-30 15:04:51", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761807891, + "date": "2025-10-30 15:04:51", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761808192, + "date": "2025-10-30 15:09:52", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761808435, + "date": "2025-10-30 15:13:55", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761808492, + "date": "2025-10-30 15:14:52", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761808792, + "date": "2025-10-30 15:19:52", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761809092, + "date": "2025-10-30 15:24:52", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761809392, + "date": "2025-10-30 15:29:52", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761809616, + "date": "2025-10-30 15:33:36", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761809802, + "date": "2025-10-30 15:36:42", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761810102, + "date": "2025-10-30 15:41:42", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761810358, + "date": "2025-10-30 15:45:58", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761810658, + "date": "2025-10-30 15:50:58", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761810958, + "date": "2025-10-30 15:55:58", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761811258, + "date": "2025-10-30 16:00:58", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761811261, + "date": "2025-10-30 16:01:01", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761811558, + "date": "2025-10-30 16:05:58", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761811858, + "date": "2025-10-30 16:10:58", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761812159, + "date": "2025-10-30 16:15:59", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761813734, + "date": "2025-10-30 16:42:14", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761814361, + "date": "2025-10-30 16:52:41", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.42.84", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761814878, + "date": "2025-10-30 17:01:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761815623, + "date": "2025-10-30 17:13:43", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761817486, + "date": "2025-10-30 17:44:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.170", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761824484, + "date": "2025-10-30 19:41:24", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.170", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761829493, + "date": "2025-10-30 21:04:53", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.170", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761830144, + "date": "2025-10-30 21:15:44", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "113.87.139.170", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1761830744, + "date": "2025-10-30 21:25:44", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "149.57.180.103", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36", + "timestamp": 1761848888, + "date": "2025-10-31 02:28:08", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761872163, + "date": "2025-10-31 08:56:03", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761872788, + "date": "2025-10-31 09:06:28", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761875859, + "date": "2025-10-31 09:57:39", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761876596, + "date": "2025-10-31 10:09:56", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.8.124", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761877720, + "date": "2025-10-31 10:28:40", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.8.124", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761889597, + "date": "2025-10-31 13:46:37", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.8.124", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761893205, + "date": "2025-10-31 14:46:45", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "23.27.145.45", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/119.0.0.0 Safari\/537.36", + "timestamp": 1761893353, + "date": "2025-10-31 14:49:13", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761899368, + "date": "2025-10-31 16:29:28", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.8.124", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761899978, + "date": "2025-10-31 16:39:38", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1761900345, + "date": "2025-10-31 16:45:45", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.8.124", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761903411, + "date": "2025-10-31 17:36:51", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.255", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1761904706, + "date": "2025-10-31 17:58:26", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "66.249.75.226", + "user_agent": "Mozilla\/5.0 (Linux; Android 6.0.1; Nexus 5X Build\/MMB29P) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.7390.122 Mobile Safari\/537.36 (compatible; Googlebot\/2.1; +http:\/\/www.google.com\/bot.html)", + "timestamp": 1761915402, + "date": "2025-10-31 20:56:42", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.84.8.124", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761923428, + "date": "2025-10-31 23:10:28", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "27.38.135.37", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761923523, + "date": "2025-10-31 23:12:03", + "referer": "https:\/\/tsama.cn\/admin.php" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/7.16.7.917 Mobile Safari\/537.36", + "timestamp": 1761923596, + "date": "2025-10-31 23:13:16", + "referer": "https:\/\/tsama.cn\/admin.php" + }, + { + "ip": "205.169.39.29", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/117.0.5938.132 Safari\/537.36", + "timestamp": 1761943560, + "date": "2025-11-01 04:46:00", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "34.123.170.104", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) HeadlessChrome\/125.0.6422.60 Safari\/537.36", + "timestamp": 1761943572, + "date": "2025-11-01 04:46:12", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "205.169.39.25", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/106.0.0.0 Safari\/537.36", + "timestamp": 1761943598, + "date": "2025-11-01 04:46:38", + "referer": "Direct" + }, + { + "ip": "113.87.139.206", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762010256, + "date": "2025-11-01 23:17:36", + "referer": "https:\/\/api.tsama.cn\/" + }, + { + "ip": "205.169.39.148", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/79.0.3945.79 Safari\/537.36", + "timestamp": 1762045878, + "date": "2025-11-02 09:11:18", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "112.97.87.32", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762084199, + "date": "2025-11-02 19:49:59", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "112.97.87.32", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762133889, + "date": "2025-11-03 09:38:09", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.192.103", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.573", + "timestamp": 1762136048, + "date": "2025-11-03 10:14:08", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762139542, + "date": "2025-11-03 11:12:22", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "146.70.185.32", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) HeadlessChrome\/140.0.7339.16 Safari\/537.36", + "timestamp": 1762141713, + "date": "2025-11-03 11:48:33", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.192.103", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.0.950 Mobile Safari\/537.36", + "timestamp": 1762144582, + "date": "2025-11-03 12:36:22", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.239", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.0.950 Mobile Safari\/537.36", + "timestamp": 1762144582, + "date": "2025-11-03 12:36:22", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762149991, + "date": "2025-11-03 14:06:31", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.45", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.0.950 Mobile Safari\/537.36", + "timestamp": 1762151534, + "date": "2025-11-03 14:32:14", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.192.103", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.0.950 Mobile Safari\/537.36", + "timestamp": 1762151535, + "date": "2025-11-03 14:32:15", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.45", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.0.950 Mobile Safari\/537.36", + "timestamp": 1762157446, + "date": "2025-11-03 16:10:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.192.103", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.0.950 Mobile Safari\/537.36", + "timestamp": 1762157446, + "date": "2025-11-03 16:10:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.137.193", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762165155, + "date": "2025-11-03 18:19:15", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762222260, + "date": "2025-11-04 10:11:00", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.0.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762239504, + "date": "2025-11-04 14:58:24", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762245743, + "date": "2025-11-04 16:42:23", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762249652, + "date": "2025-11-04 17:47:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "220.196.160.146", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762252266, + "date": "2025-11-04 18:31:06", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "180.101.245.251", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762252269, + "date": "2025-11-04 18:31:09", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "110.249.201.169", + "user_agent": "Mozilla\/5.0 (Linux; Android 5.0) AppleWebKit\/537.36 (KHTML, like Gecko) Mobile Safari\/537.36 (compatible; Bytespider; https:\/\/zhanzhang.toutiao.com\/)", + "timestamp": 1762300106, + "date": "2025-11-05 07:48:26", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762306702, + "date": "2025-11-05 09:38:22", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762313983, + "date": "2025-11-05 11:39:43", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762315159, + "date": "2025-11-05 11:59:19", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762323337, + "date": "2025-11-05 14:15:37", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762323991, + "date": "2025-11-05 14:26:31", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762324598, + "date": "2025-11-05 14:36:38", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "14.116.140.24", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.1.951 Mobile Safari\/537.36", + "timestamp": 1762339194, + "date": "2025-11-05 18:39:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.33.37", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.1.951 Mobile Safari\/537.36", + "timestamp": 1762339194, + "date": "2025-11-05 18:39:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.86", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.1.951 Mobile Safari\/537.36", + "timestamp": 1762358049, + "date": "2025-11-05 23:54:09", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.136.77", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.1.951 Mobile Safari\/537.36", + "timestamp": 1762358049, + "date": "2025-11-05 23:54:09", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762389048, + "date": "2025-11-06 08:30:48", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762389691, + "date": "2025-11-06 08:41:31", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "180.101.244.13", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762397331, + "date": "2025-11-06 10:48:51", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "180.101.244.15", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762397332, + "date": "2025-11-06 10:48:52", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762406577, + "date": "2025-11-06 13:22:57", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762412167, + "date": "2025-11-06 14:56:07", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.136.77", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.1.951 Mobile Safari\/537.36", + "timestamp": 1762443818, + "date": "2025-11-06 23:43:38", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.239", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.1.951 Mobile Safari\/537.36", + "timestamp": 1762443819, + "date": "2025-11-06 23:43:39", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.42", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.1.951 Mobile Safari\/537.36", + "timestamp": 1762443851, + "date": "2025-11-06 23:44:11", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762479827, + "date": "2025-11-07 09:43:47", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.138.191", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762480471, + "date": "2025-11-07 09:54:31", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.83.15", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.2.952 Mobile Safari\/537.36", + "timestamp": 1762500708, + "date": "2025-11-07 15:31:48", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.2.952 Mobile Safari\/537.36", + "timestamp": 1762500708, + "date": "2025-11-07 15:31:48", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.83.15", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.2.952 Mobile Safari\/537.36", + "timestamp": 1762501327, + "date": "2025-11-07 15:42:07", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.83.15", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.2.952 Mobile Safari\/537.36", + "timestamp": 1762531061, + "date": "2025-11-07 23:57:41", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.45", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.2.952 Mobile Safari\/537.36", + "timestamp": 1762531061, + "date": "2025-11-07 23:57:41", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762744545, + "date": "2025-11-10 11:15:45", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762746568, + "date": "2025-11-10 11:49:28", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762754144, + "date": "2025-11-10 13:55:44", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762754792, + "date": "2025-11-10 14:06:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762755395, + "date": "2025-11-10 14:16:35", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762829799, + "date": "2025-11-11 10:56:39", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762838913, + "date": "2025-11-11 13:28:33", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.193.224", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762838913, + "date": "2025-11-11 13:28:33", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762839710, + "date": "2025-11-11 13:41:50", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762840352, + "date": "2025-11-11 13:52:32", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762840952, + "date": "2025-11-11 14:02:32", + "referer": "https:\/\/tsama.cn\/index.php" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762847085, + "date": "2025-11-11 15:44:45", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "180.101.244.15", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762856575, + "date": "2025-11-11 18:22:55", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "129.211.162.158", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1762856584, + "date": "2025-11-11 18:23:04", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.12", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762876151, + "date": "2025-11-11 23:49:11", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762876152, + "date": "2025-11-11 23:49:12", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.86", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762916890, + "date": "2025-11-12 11:08:10", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.169.220", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762916897, + "date": "2025-11-12 11:08:17", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.239", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762929145, + "date": "2025-11-12 14:32:25", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762929145, + "date": "2025-11-12 14:32:25", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1762930300, + "date": "2025-11-12 14:51:40", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36 Edg\/141.0.0.0", + "timestamp": 1762933489, + "date": "2025-11-12 15:44:49", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762938731, + "date": "2025-11-12 17:12:11", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.31.17.219", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762938732, + "date": "2025-11-12 17:12:12", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.12", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762962301, + "date": "2025-11-12 23:45:01", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.239", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1762962301, + "date": "2025-11-12 23:45:01", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "220.196.160.144", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1763008494, + "date": "2025-11-13 12:34:54", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "180.101.245.251", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_4 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/18.4 Mobile\/15E148 Safari\/604.1", + "timestamp": 1763008509, + "date": "2025-11-13 12:35:09", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "14.31.17.35", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763008809, + "date": "2025-11-13 12:40:09", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.239", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763008809, + "date": "2025-11-13 12:40:09", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1763027006, + "date": "2025-11-13 17:43:26", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.239", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763027843, + "date": "2025-11-13 17:57:23", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.184", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763027843, + "date": "2025-11-13 17:57:23", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "112.97.80.134", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1763028442, + "date": "2025-11-13 18:07:22", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.31.17.35", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763028884, + "date": "2025-11-13 18:14:44", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "66.249.77.193", + "user_agent": "Mozilla\/5.0 (Linux; Android 6.0.1; Nexus 5X Build\/MMB29P) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.7390.122 Mobile Safari\/537.36 (compatible; Googlebot\/2.1; +http:\/\/www.google.com\/bot.html)", + "timestamp": 1763044679, + "date": "2025-11-13 22:37:59", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.31.17.35", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763049822, + "date": "2025-11-14 00:03:42", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.24", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763049822, + "date": "2025-11-14 00:03:42", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "35.165.215.140", + "user_agent": "Mozilla\/5.0 (X11; Linux x86_64) AppleWebKit\/537.36 (KHTML, like Gecko) HeadlessChrome\/141.0.0.0 Safari\/537.36", + "timestamp": 1763069448, + "date": "2025-11-14 05:30:48", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.101", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763086725, + "date": "2025-11-14 10:18:45", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.45", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763086726, + "date": "2025-11-14 10:18:46", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.139.101", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.3.953 Mobile Safari\/537.36", + "timestamp": 1763087373, + "date": "2025-11-14 10:29:33", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.136.32", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1763100138, + "date": "2025-11-14 14:02:18", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.136.32", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1763100752, + "date": "2025-11-14 14:12:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.136.32", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1763101352, + "date": "2025-11-14 14:22:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.136.32", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/130.0.0.0 Safari\/537.36 QuarkPC\/4.6.5.580", + "timestamp": 1763101952, + "date": "2025-11-14 14:32:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "205.169.39.16", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/117.0.5938.132 Safari\/537.36", + "timestamp": 1763216882, + "date": "2025-11-15 22:28:02", + "referer": "http:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.239", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.5.960 Mobile Safari\/537.36", + "timestamp": 1763351072, + "date": "2025-11-17 11:44:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.33.13", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.5.960 Mobile Safari\/537.36", + "timestamp": 1763351072, + "date": "2025-11-17 11:44:32", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "112.97.80.134", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1763357429, + "date": "2025-11-17 13:30:29", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.84.33.13", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.5.960 Mobile Safari\/537.36", + "timestamp": 1763361926, + "date": "2025-11-17 14:45:26", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "14.116.140.135", + "user_agent": "Mozilla\/5.0 (Linux; U; Android 15; zh-CN; 23116PN5BC Build\/AQ3A.240627.003) AppleWebKit\/537.36 (KHTML, like Gecko) Version\/4.0 Chrome\/123.0.6312.80 Quark\/10.0.5.960 Mobile Safari\/537.36", + "timestamp": 1763361926, + "date": "2025-11-17 14:45:26", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "113.87.136.32", + "user_agent": "Mozilla\/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit\/605.1.15 (KHTML, like Gecko) Version\/26.1 Mobile\/15E148 Safari\/604.1", + "timestamp": 1763437464, + "date": "2025-11-18 11:44:24", + "referer": "https:\/\/tsama.cn\/" + }, + { + "ip": "::1", + "user_agent": "Mozilla\/5.0 (Windows NT; Windows NT 10.0; zh-CN) WindowsPowerShell\/5.1.26100.4768", + "timestamp": 1765507198, + "date": "2025-12-12 03:39:58", + "referer": "Direct" + }, + { + "ip": "::1", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36 Edg\/141.0.0.0", + "timestamp": 1765507838, + "date": "2025-12-12 03:50:38", + "referer": "http:\/\/localhost:8080\/2\/" + }, + { + "ip": "::1", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36 Edg\/141.0.0.0", + "timestamp": 1765508438, + "date": "2025-12-12 04:00:38", + "referer": "http:\/\/localhost:8080\/2\/" + }, + { + "ip": "::1", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/141.0.0.0 Safari\/537.36 Edg\/141.0.0.0", + "timestamp": 1765509038, + "date": "2025-12-12 04:10:38", + "referer": "http:\/\/localhost:8080\/2\/" + }, + { + "ip": "::1", + "user_agent": "Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) TraeCN\/1.104.3 Chrome\/138.0.7204.251 Electron\/37.6.1 Safari\/537.36", + "timestamp": 1765511264, + "date": "2025-12-12 04:47:44", + "referer": "http:\/\/localhost:8080\/2\/?ide_webview_request_time=1765511263860" + } +] \ No newline at end of file diff --git a/index.php b/index.php new file mode 100644 index 0000000..5ca2b7a --- /dev/null +++ b/index.php @@ -0,0 +1,82 @@ + + + + + + + 🚀 组合基金监控 + + + + + +
+
+
+

基金监控

+

实时投资组合追踪

+
+ + + + + +
+
+
+ + + + +
+
+
+

正在加载基金数据...

+
+
+ + +
+ + + + diff --git a/login.php b/login.php new file mode 100644 index 0000000..f68c734 --- /dev/null +++ b/login.php @@ -0,0 +1,241 @@ + date('Y-m-d H:i:s'), + 'action' => '管理员登录', + 'ip' => $_SERVER['REMOTE_ADDR'] + ]; + + // 保存登录日志 + saveLog($log_entry); + + // 跳转到管理页面 + header('Location: admin.php'); + exit; + } else { + // 登录失败 + $error = '密码错误,请重试'; + } +} + +// 保存日志函数 +function saveLog($log_entry) { + $log_file = 'data/operation_log.json'; + + // 检查目录是否存在,不存在则创建 + if (!file_exists(dirname($log_file))) { + mkdir(dirname($log_file), 0777, true); + } + + // 读取现有日志 + $logs = []; + if (file_exists($log_file)) { + $content = file_get_contents($log_file); + if (!empty($content)) { + $logs = json_decode($content, true); + } + } + + // 添加新日志 + array_unshift($logs, $log_entry); + + // 限制日志数量,只保留最新的500条 + if (count($logs) > 500) { + $logs = array_slice($logs, 0, 500); + } + + // 保存日志 + file_put_contents($log_file, json_encode($logs, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT)); +} +?> + + + + + + 🚀 基金监控 - 登录 + + + + + + + \ No newline at end of file diff --git a/recommend_fund.css b/recommend_fund.css new file mode 100644 index 0000000..d65ca81 --- /dev/null +++ b/recommend_fund.css @@ -0,0 +1,711 @@ +/* 推荐基金页面专用样式 */ + +/* 容器样式 */ +.recommend-container { + max-width: 880px; + margin: 0 auto; + padding: 20px; +} + +/* 表单样式 */ +.recommend-form { + background: white; + padding: 30px; + border-radius: 12px; + margin-bottom: 30px; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); +} + +.recommend-form h2 { + margin-top: 0; + margin-bottom: 25px; + color: #374151; + font-size: 1.4rem; +} + +.form-group { + margin-bottom: 25px; +} + +.form-group label { + display: block; + margin-bottom: 10px; + font-weight: 600; + color: #4b5563; + font-size: 1rem; +} + +.form-group input { + width: 100%; + padding: 12px 16px; + border: 2px solid #e5e7eb; + border-radius: 10px; + font-size: 1rem; + transition: all 0.3s ease; + background: #f9fafb; +} + +.form-group input:focus { + outline: none; + border-color: #6366f1; + box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); + background: white; +} + +.submit-btn { + background: linear-gradient(135deg, #6366f1, #8b5cf6); + color: white; + border: none; + padding: 12px 24px; + border-radius: 10px; + font-size: 1rem; + font-weight: 600; + cursor: pointer; + transition: all 0.3s ease; + display: inline-flex; + align-items: center; + gap: 8px; +} + +.submit-btn:hover { + transform: translateY(-2px); + box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3); +} + +/* 消息提示样式 */ +.message { + padding: 15px 20px; + margin-bottom: 20px; + border-radius: 10px; + font-weight: 600; + transition: all 0.3s ease; + box-shadow: 0 2px 8px rgba(0,0,0,0.1); +} + +.message.success { + background: linear-gradient(135deg, #d1fae5, #06d6a0); + color: #065f46; + border: none; +} + +.message.error { + background: linear-gradient(135deg, #fee2e2, #ef4444); + color: #991b1b; + border: none; +} + +/* 统计显示样式 */ +.stats-display { + display: flex; + justify-content: space-between; + margin-bottom: 25px; + gap: 15px; + flex-wrap: wrap; +} + +.stat-item { + text-align: center; + flex: 1; + min-width: 180px; + padding: 20px 15px; + background: white; + border-radius: 12px; + margin: 0; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); + transition: all 0.3s ease; + position: relative; + overflow: hidden; +} + +.stat-item:hover { + transform: translateY(-5px); + box-shadow: 0 8px 25px rgba(0,0,0,0.12); +} + +.stat-item::before { + content: ''; + position: absolute; + top: 0; + left: 0; + width: 4px; + height: 100%; + background: linear-gradient(180deg, #6366f1, #8b5cf6); +} + +.stat-number { + font-size: 2.2rem; + font-weight: 700; + color: #6366f1; + margin-bottom: 8px; + display: block; +} + +.stat-label { + font-size: 0.95rem; + color: #6b7280; + font-weight: 500; +} + +/* 信息框样式 */ +.info-box { + background: linear-gradient(135deg, #dbeafe, #3b82f6); + color: #1e40af; + padding: 20px; + border-radius: 12px; + margin-bottom: 25px; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); +} + +.info-box strong { + display: block; + margin-bottom: 12px; + font-size: 1.1rem; +} + +.info-box ul { + margin: 0; + padding-left: 25px; +} + +.info-box li { + margin-bottom: 6px; + font-weight: 500; +} + +/* 警告框样式 */ +.warning-box { + background: linear-gradient(135deg, #fef3c7, #f59e0b); + color: #92400e; + padding: 20px; + border-radius: 12px; + margin-bottom: 25px; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); +} + +.warning-box strong { + display: block; + margin-bottom: 12px; + font-size: 1.1rem; +} + +/* 基金列表样式 */ +.fund-list { + background: white; + padding: 30px; + border-radius: 12px; + box-shadow: 0 4px 12px rgba(0,0,0,0.08); + margin-top: 30px; +} + +.fund-list h3 { + margin-top: 0; + color: #374151; + margin-bottom: 25px; + font-size: 1.3rem; + position: relative; + padding-bottom: 12px; +} + +.fund-list h3::after { + content: ''; + position: absolute; + bottom: 0; + left: 0; + width: 60px; + height: 4px; + background: linear-gradient(90deg, #6366f1, #8b5cf6); + border-radius: 2px; +} + +/* 下拉框容器 */ +.dropdown-container { + margin-top: 0; +} + +/* 下拉框项样式 */ +.dropdown-item { + margin-bottom: 16px; + border: 2px solid #e5e7eb; + border-radius: 12px; + overflow: hidden; + transition: all 0.3s ease; + background: white; +} + +.dropdown-item:hover { + border-color: #d1d5db; + box-shadow: 0 4px 12px rgba(0,0,0,0.05); +} + +.dropdown-item.user-ip { + border-color: #6366f1; + background-color: #f8fafc; + box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15); +} + +/* 下拉框头部 */ +.dropdown-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 18px 20px; + background: linear-gradient(135deg, #f8fafc, #e2e8f0); + cursor: pointer; + transition: all 0.3s ease; + position: relative; +} + +.dropdown-header:hover { + background: linear-gradient(135deg, #e2e8f0, #cbd5e1); +} + +.dropdown-item.user-ip .dropdown-header { + background: linear-gradient(135deg, #eff6ff, #dbeafe); +} + +.dropdown-item.user-ip .dropdown-header:hover { + background: linear-gradient(135deg, #dbeafe, #bfdbfe); +} + +/* 下拉框信息 */ +.dropdown-info { + display: flex; + flex-wrap: wrap; + gap: 25px; + align-items: center; +} + +.dropdown-info > strong { + color: #6366f1; + font-size: 1.1rem; +} + +.dropdown-time, +.dropdown-count, +.dropdown-total-change { + font-size: 0.95rem; + color: #4b5563; + font-weight: 500; +} + +.dropdown-time strong, +.dropdown-count strong { + color: #374151; +} + +.dropdown-total-change { + font-weight: 700; + padding: 6px 12px; + border-radius: 6px; + background: #f3f4f6; + transition: all 0.3s ease; +} + +.dropdown-total-change.positive { + background: #dcfce7; + color: #166534; +} + +.dropdown-total-change.negative { + background: #fee2e2; + color: #991b1b; +} + +/* 下拉框箭头 */ +.dropdown-arrow i { + transition: transform 0.3s ease; + font-size: 1.1rem; + color: #6366f1; +} + +.dropdown-item.open .dropdown-arrow i { + transform: rotate(180deg); +} + +/* 下拉框内容 */ +.dropdown-content { + max-height: 0; + overflow: hidden; + transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); + background-color: white; +} + +.dropdown-item.open .dropdown-content { + max-height: 800px; +} + +/* 基金详情表格 */ +.fund-details-table { + width: 100%; + border-collapse: collapse; + font-size: 0.95rem; +} + +.fund-details-table th, +.fund-details-table td { + padding: 15px 20px; + text-align: left; + border-bottom: 1px solid #f1f5f9; + transition: all 0.3s ease; +} + +.fund-details-table th { + background: #f8fafc; + font-weight: 600; + color: #374151; + font-size: 0.9rem; + text-transform: uppercase; + letter-spacing: 0.5px; +} + +.fund-details-table tr:hover { + background: #f8fafc; + transform: translateX(2px); +} + +.fund-details-table tr:last-child td { + border-bottom: none; +} + +/* 基金涨幅样式 */ +.fund-change { + font-weight: 700; + padding: 4px 8px; + border-radius: 4px; + transition: all 0.3s ease; +} + +.fund-change.positive { + background: #fee2e2; + color: #dc2626; +} + +.fund-change.negative { + background: #dcfce7; + color: #16a34a; +} + +/* 错误状态样式 */ +.fund-change.error { + background: #f3f4f6; + color: #6b7280; + font-style: italic; + box-shadow: 0 2px 5px rgba(107, 114, 128, 0.1); +} + +.error-text { + color: #6b7280; + font-style: italic; + font-size: 0.9em; + display: flex; + align-items: center; + gap: 5px; +} + +.error-text::before { + content: '⚠️'; + font-size: 1em; +} + +.error-row { + background: linear-gradient(90deg, #fffbeb, #fef3c7); + border-left: 3px solid #f59e0b; + transition: all 0.3s ease; +} + +.error-row:hover { + background: linear-gradient(90deg, #fef3c7, #fde68a); + transform: translateX(2px); +} + +.error-icon { + color: #f59e0b; + font-weight: bold; + font-size: 1.2em; +} + +/* 返回按钮样式 */ +.back-btn { + display: inline-block; + margin-bottom: 25px; + color: #000000ff; + text-decoration: none; + padding: 10px 20px; + border: 2px solid #0004d3; + border-radius: 10px; + transition: all 0.3s ease; + font-weight: 600; + display: inline-flex; + align-items: center; + gap: 8px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); +} + +.back-btn:hover { + background: linear-gradient(135deg, #6366f1, #8b5cf6); + color: white; + transform: translateY(-2px); + box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3); +} + +/* 加载指示器样式 */ +.loading-overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; + backdrop-filter: blur(3px); +} + +.loading-spinner { + background: white; + padding: 40px; + border-radius: 15px; + text-align: center; + box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); + animation: fadeIn 0.3s ease; +} + +.loading-spinner i { + font-size: 48px; + color: #6366f1; + margin-bottom: 20px; + display: block; + animation: spin 1s linear infinite; +} + +.loading-spinner span { + font-size: 18px; + font-weight: 600; + color: #495057; +} + +@keyframes spin { + 0% { transform: rotate(0deg); } + 100% { transform: rotate(360deg); } +} + +@keyframes fadeIn { + from { + opacity: 0; + transform: scale(0.9); + } + to { + opacity: 1; + transform: scale(1); + } +} + +/* 改进错误显示效果 */ +.error-container { + background: linear-gradient(135deg, #fee2e2, #fecaca); + border: 2px solid #ef4444; + border-radius: 12px; + padding: 20px; + margin-bottom: 25px; + box-shadow: 0 4px 15px rgba(239, 68, 68, 0.15); + position: relative; +} + +.error-container::before { + content: '⚠️'; + position: absolute; + top: 15px; + right: 20px; + font-size: 24px; +} + +.error-container h4 { + color: #991b1b; + margin-top: 0; + margin-bottom: 10px; + font-size: 1.2rem; + display: flex; + align-items: center; + gap: 8px; +} + +.error-container p { + color: #7f1d1d; + margin: 0; + font-weight: 500; +} + +/* 空状态样式 */ +.empty-state { + text-align: center; + padding: 60px 20px; + color: #6b7280; + background: linear-gradient(135deg, #f9fafb, #f3f4f6); + border-radius: 12px; + border: 2px dashed #d1d5db; +} + +.empty-state i { + font-size: 72px; + margin-bottom: 20px; + opacity: 0.3; + color: #6366f1; +} + +.empty-state h3 { + font-size: 24px; + margin-bottom: 10px; + color: #4b5563; +} + +.empty-state p { + font-size: 16px; + max-width: 400px; + margin: 0 auto; +} + +/* 高亮动画样式 */ +.highlight { + animation: highlight 0.3s ease-in-out; +} + +@keyframes highlight { + 0% { background-color: transparent; } + 50% { background-color: rgba(255, 255, 0, 0.3); } + 100% { background-color: transparent; } +} +/* ===== UI优化追加样式(覆盖同名规则) ===== */ +.stat-icon { + width: 40px; + height: 40px; + border-radius: 12px; + display: inline-flex; + align-items: center; + justify-content: center; + background: linear-gradient(135deg, var(--primary), var(--primary-dark)); + color: #fff; + margin-bottom: 10px; + box-shadow: 0 6px 18px rgba(99, 102, 241, 0.35); +} + +.dropdown-total-change.neutral { + background: #f3f4f6; + color: #374151; +} + +.fund-change.neutral { + background: #f3f4f6; + color: #374151; +} + +.fund-change.highlight, +.dropdown-total-change.highlight { + box-shadow: 0 0 0 6px rgba(99,102,241,0.08) inset; +} + +.back-btn { + color: var(--dark); + border: 2px solid var(--primary); +} + +.ip-badge { + display: inline-flex; + align-items: center; + gap: 6px; + padding: 6px 10px; + border-radius: 999px; + background: linear-gradient(135deg, var(--info), var(--primary)); + color: #fff; + font-size: 0.85rem; + font-weight: 600; +} + +@media (max-width: 680px) { + .fund-details-table thead { display: none; } + .fund-details-table, + .fund-details-table tbody, + .fund-details-table tr, + .fund-details-table td { display: block; width: 100%; } + .fund-details-table tr { + background: #fff; + border: 1px solid var(--border); + border-radius: 12px; + margin-bottom: 12px; + box-shadow: 0 4px 12px rgba(0,0,0,0.05); + padding: 6px 0; + } + .fund-details-table td { + display: flex; + align-items: center; + justify-content: space-between; + padding: 10px 16px; + border-bottom: none; + } + .fund-details-table td:nth-child(1)::before { content: '基金代码'; color: #6b7280; font-weight: 600; margin-right: 12px; } + .fund-details-table td:nth-child(2)::before { content: '推荐时间'; color: #6b7280; font-weight: 600; margin-right: 12px; } + .fund-details-table td:nth-child(3)::before { content: '基金名称'; color: #6b7280; font-weight: 600; margin-right: 12px; } + .fund-details-table td:nth-child(4)::before { content: '当前涨幅'; color: #6b7280; font-weight: 600; margin-right: 12px; } +} +/* 排序工具条样式 */ +.sort-toolbar { + display: flex; + gap: 12px; + margin-bottom: 16px; + flex-wrap: wrap; +} + +.sort-btn { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 14px; + border-radius: 10px; + border: 2px solid var(--border); + background: #fff; + color: var(--dark); + font-weight: 600; + cursor: pointer; + transition: all 0.2s ease; +} + +.sort-btn .order-indicator { + font-size: 0.9rem; + color: var(--gray); +} + +.sort-btn:hover { + border-color: var(--primary); + box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15); +} + +.sort-btn.active { + background: linear-gradient(135deg, var(--primary), var(--primary-dark)); + color: #fff; + border-color: transparent; +} + +.sort-btn.active .order-indicator { + color: #fff; +} + +/* 重置按钮样式 */ +.sort-reset { + display: inline-flex; + align-items: center; + gap: 8px; + padding: 8px 14px; + border-radius: 10px; + border: 2px solid var(--border); + background: #fff; + color: var(--dark); + font-weight: 600; + cursor: pointer; + transition: all 0.2s ease; +} + +.sort-reset:hover { + border-color: var(--primary); + box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15); +} diff --git a/recommend_fund.js b/recommend_fund.js new file mode 100644 index 0000000..faf6841 --- /dev/null +++ b/recommend_fund.js @@ -0,0 +1,657 @@ +/** + * 推荐基金页面JavaScript功能 + */ + +// 配置常量 +const API_TIMEOUT = 5000; // API 请求超时时间(毫秒) +const MAX_RETRY_COUNT = 3; // 最大重试次数 +const RETRY_DELAY = 1000; // 重试延迟(毫秒) +const BATCH_SIZE = 10; // 批量请求数量 +const UPDATE_INTERVAL = 60000; // 自动更新间隔(毫秒) +const HIGHLIGHT_DURATION = 300; // 高亮效果持续时间 + +// 全局状态 +let updateIntervalId = null; +let isLoading = false; +let fundDataCache = {}; // 缓存基金数据 +let lastData = {}; // 上一次的数据,用于比较变化 +let errorCount = 0; +const MAX_ERROR_COUNT = 5; // 连续错误次数上限 + +/** + * 格式化数字(保留两位小数) + * @param {number} num - 要格式化的数字 + * @returns {string} 格式化后的字符串 + */ +function formatNumber(num) { + if (typeof num !== 'number' || isNaN(num)) { + return '--'; + } + return num.toFixed(2); +} + +/** + * 显示加载状态 + * @param {boolean} show - 是否显示 + */ +function showLoading(show) { + const loadingElement = document.getElementById('loading-indicator'); + if (!loadingElement && show) { + // 创建加载指示器 + const div = document.createElement('div'); + div.id = 'loading-indicator'; + div.className = 'loading-overlay'; + div.innerHTML = ` +
+ + 加载基金数据中... +
+ `; + document.body.appendChild(div); + } else if (loadingElement) { + loadingElement.style.display = show ? 'flex' : 'none'; + } +} + +/** + * 清理JSONP请求的资源 + * @param {string} scriptId - script标签ID + * @param {string} callbackName - 回调函数名 + */ +function cleanupResources(scriptId, callbackName) { + // 清理script标签 + const script = document.getElementById(scriptId); + if (script && script.parentNode) { + script.parentNode.removeChild(script); + } + + // 清理回调函数 + if (window[callbackName]) { + delete window[callbackName]; + } +} + +/** + * 处理API错误 + * @param {string} errorMessage - 错误消息 + */ +function handleApiError(errorMessage) { + errorCount++; + console.error(errorMessage); + + // 如果连续错误次数过多,显示错误提示 + if (errorCount >= MAX_ERROR_COUNT) { + updateErrorDisplay('获取基金数据时遇到问题,请稍后再试', true); + } +} + +/** + * 获取单个基金数据(使用 JSONP 方式,支持预加载) + * @param {string} fundCode - 基金代码 + * @param {number} retryCount - 当前重试次数 + * @returns {Promise} 基金数据对象 + */ +function fetchFundData(fundCode, retryCount = 0) { + // 清理基金代码,确保只包含数字和字母 + const cleanFundCode = String(fundCode).replace(/[^\dA-Za-z]/g, '').trim(); + + if (!cleanFundCode) { + console.error('无效的基金代码:', fundCode); + return Promise.resolve({ + success: false, + error: '无效的基金代码', + fundCode: fundCode + }); + } + + // 1. 检查是否有预加载数据 + if (window.preloadedFundData && window.preloadedFundData[cleanFundCode]) { + console.log(`使用预加载数据: ${cleanFundCode}`); + return Promise.resolve({ + success: true, + data: window.preloadedFundData[cleanFundCode], + fromCache: true + }); + } + + // 2. 检查缓存 + const cachedData = fundDataCache[cleanFundCode]; + if (cachedData && (Date.now() - cachedData.timestamp) < 30000) { // 30秒缓存 + return Promise.resolve({ + success: true, + data: cachedData.data, + fromCache: true + }); + } + + return new Promise((resolve, reject) => { + // 设置超时 + const timeoutId = setTimeout(() => { + reject(new Error('请求超时')); + }, API_TIMEOUT); + + // 创建唯一的回调函数名 + const callbackName = `jsonp_callback_${cleanFundCode}_${Date.now()}`; + const scriptId = `jsonp_script_${cleanFundCode}`; + + // 定义全局回调函数 + window[callbackName] = function(data) { + clearTimeout(timeoutId); + + // 检查数据有效性 + if (!data || !data.fundcode || data.fundcode !== cleanFundCode) { + cleanupResources(scriptId, callbackName); + handleApiError(`基金${cleanFundCode}数据格式错误`); + resolve({ + success: false, + error: '数据格式错误', + fundCode: cleanFundCode + }); + return; + } + + // 缓存数据 + fundDataCache[cleanFundCode] = { + data: data, + timestamp: Date.now() + }; + + // 重置错误计数 + errorCount = 0; + + // 清理资源并返回结果 + cleanupResources(scriptId, callbackName); + resolve({ + success: true, + data: data + }); + }; + + // 创建脚本元素 + const script = document.createElement('script'); + script.id = scriptId; + script.src = `http://fundgz.1234567.com.cn/js/${cleanFundCode}.js?callback=${callbackName}`; + script.onerror = function() { + clearTimeout(timeoutId); + cleanupResources(scriptId, callbackName); + reject(new Error('脚本加载失败')); + }; + + // 添加到文档中 + document.body.appendChild(script); + }).catch(error => { + console.error(`获取基金 ${cleanFundCode} 数据失败:`, error.message); + + // 重试逻辑 + if (retryCount < MAX_RETRY_COUNT) { + console.log(`尝试重试 ${cleanFundCode}, 第 ${retryCount + 1} 次`); + return new Promise(resolve => { + setTimeout(() => { + resolve(fetchFundData(cleanFundCode, retryCount + 1)); + }, RETRY_DELAY * (retryCount + 1)); + }); + } + + handleApiError(`获取基金 ${cleanFundCode} 数据失败`); + return { + success: false, + error: error.message, + fundCode: cleanFundCode + }; + }); +} + +/** + * 批量获取基金数据 + * @param {Array} fundCodes - 基金代码数组 + * @returns {Promise} 基金数据结果数组 + */ +async function fetchFundsDataInBatch(fundCodes) { + // 分批处理,避免一次请求过多 + const batches = []; + for (let i = 0; i < fundCodes.length; i += BATCH_SIZE) { + batches.push(fundCodes.slice(i, i + BATCH_SIZE)); + } + + const allResults = []; + + // 逐批处理 + for (const batch of batches) { + // 使用Promise.allSettled确保所有请求都完成 + const batchPromises = batch.map(code => fetchFundData(code)); + const batchResults = await Promise.allSettled(batchPromises); + + batchResults.forEach((result, index) => { + if (result.status === 'fulfilled') { + allResults.push(result.value); + } else { + console.error(`处理批处理中基金 ${batch[index]} 时出错:`, result.reason); + allResults.push({ + success: false, + error: result.reason?.message || '未知错误', + fundCode: batch[index] + }); + } + }); + + // 批处理之间添加短暂延迟,避免请求过于密集 + if (batches.indexOf(batch) < batches.length - 1) { + await new Promise(resolve => setTimeout(resolve, 500)); + } + } + + return allResults; +} + +/** + * 更新基金错误状态显示 + * @param {string} fundCode - 基金代码 + */ +function updateFundError(fundCode) { + // 更新基金名称显示 + document.querySelectorAll(`.fund-name[data-fund-code="${fundCode}"]`).forEach(el => { + if (el.textContent === '加载中...') { + el.textContent = `${fundCode} (数据获取失败)`; + el.classList.add('error-text'); + } + }); + + // 更新涨幅显示 + document.querySelectorAll(`.fund-change[data-fund-code="${fundCode}"]`).forEach(el => { + el.textContent = '--'; + el.classList.add('error'); + }); +} + +/** + * 加载所有基金信息 + */ +async function loadAllFundInfo() { + if (isLoading) return; + isLoading = true; + showLoading(true); + + try { + // 保存旧数据用于比较 + lastData = {}; + for (const fundCode in fundDataCache) { + lastData[fundCode] = fundDataCache[fundCode].data; + } + + // 获取所有需要的基金代码 + const fundElements = document.querySelectorAll('[data-fund-code]'); + const fundCodes = Array.from(new Set(Array.from(fundElements).map(el => { + const code = el.getAttribute('data-fund-code'); + // 清理基金代码 + return String(code || '').replace(/[^\dA-Za-z]/g, '').trim(); + }))).filter(code => code.length > 0); // 过滤空代码 + + if (fundCodes.length === 0) { + console.log('没有找到需要加载的基金'); + return; + } + + console.log(`开始加载 ${fundCodes.length} 支基金数据`, fundCodes); + + // 批量获取基金数据 + const results = await fetchFundsDataInBatch(fundCodes); + + // 更新UI + let successCount = 0; + results.forEach(result => { + if (result.success && result.data) { + updateFundDisplay(result.data); + successCount++; + } else { + // 对于失败的请求,尝试更新为错误状态 + if (result.fundCode) { + updateFundError(result.fundCode); + } + } + }); + + // 更新IP组的总涨幅 + updateIpTotalChanges(); + + console.log(`基金数据加载完成: 成功${successCount}/${fundCodes.length}`); + } catch (error) { + console.error('加载基金信息时发生错误:', error); + updateErrorDisplay('加载基金数据失败,请稍后重试', true); + } finally { + isLoading = false; + showLoading(false); + } +} + +/** + * 更新单个基金的显示信息 + * @param {Object} fundData - 基金数据 + */ +function updateFundDisplay(fundData) { + if (!fundData || !fundData.fundcode) return; + + const fundCode = fundData.fundcode; + const name = fundData.name || '未知名称'; + const gszzl = parseFloat(fundData.gszzl) || 0; + + // 检查是否有数据变化 + const oldData = lastData[fundCode]; + const hasChanged = !oldData || oldData.gszzl !== fundData.gszzl; + + // 更新基金名称 + document.querySelectorAll(`.fund-name[data-fund-code="${fundCode}"]`).forEach(el => { + el.textContent = name; + }); + + // 更新基金涨幅 + document.querySelectorAll(`.fund-change[data-fund-code="${fundCode}"]`).forEach(el => { + const oldValue = el.textContent; + + el.textContent = `${formatNumber(gszzl)}%`; + + // 根据涨跌设置颜色 + el.classList.remove('positive', 'negative', 'neutral', 'highlight'); + if (gszzl > 0) { + el.classList.add('positive'); + } else if (gszzl < 0) { + el.classList.add('negative'); + } else { + el.classList.add('neutral'); + } + + // 如果有变化,添加高亮效果 + if (hasChanged) { + el.classList.add('highlight'); + setTimeout(() => { + el.classList.remove('highlight'); + }, HIGHLIGHT_DURATION); + } + }); +} + +/** + * 更新IP组的总涨幅 + */ +function updateIpTotalChanges() { + // 获取所有IP分组 + const ipGroups = document.querySelectorAll('[id^="ip-"]'); + + ipGroups.forEach(group => { + const ipId = group.id; + const changeElements = group.querySelectorAll('.fund-change'); + let totalChange = 0; + let validCount = 0; + + changeElements.forEach(el => { + const text = el.textContent.trim(); + if (text !== '--' && text !== '') { + const change = parseFloat(text.replace('%', '')); + if (!isNaN(change)) { + totalChange += change; + validCount++; + } + } + }); + + // 计算平均涨幅 + const avgChange = validCount > 0 ? totalChange / validCount : 0; + + // 更新显示 + const totalChangeElement = document.querySelector(`#total-change-${ipId.split('-')[1]}`); + if (totalChangeElement) { + const oldValue = totalChangeElement.textContent; + const newValue = `${formatNumber(avgChange)}%`; + + totalChangeElement.textContent = newValue; + + // 如果有变化,添加高亮效果 + if (oldValue !== newValue) { + totalChangeElement.classList.add('highlight'); + setTimeout(() => { + totalChangeElement.classList.remove('highlight'); + }, HIGHLIGHT_DURATION); + } + + // 根据涨跌设置颜色 + totalChangeElement.classList.remove('positive', 'negative', 'neutral'); + if (avgChange > 0) { + totalChangeElement.classList.add('positive'); + } else if (avgChange < 0) { + totalChangeElement.classList.add('negative'); + } else { + totalChangeElement.classList.add('neutral'); + } + + // 将平均涨幅写入分组容器的data属性,便于排序 + const dropdownItem = document.getElementById(ipId)?.closest('.dropdown-item'); + if (dropdownItem) { + dropdownItem.dataset.avgChange = String(avgChange); + } + } + }); +} + +/** + * 更新错误显示 + * @param {string} message - 错误信息 + * @param {boolean} show - 是否显示错误 + */ +function updateErrorDisplay(message, show = true) { + let errorElement = document.getElementById('api-error'); + + if (!errorElement) { + errorElement = document.createElement('div'); + errorElement.id = 'api-error'; + errorElement.className = 'error-message'; + document.body.prepend(errorElement); + } + + if (show) { + errorElement.textContent = message; + errorElement.style.display = 'block'; + + // 5秒后自动隐藏错误信息 + setTimeout(() => { + errorElement.style.display = 'none'; + }, 5000); + } else { + errorElement.style.display = 'none'; + } +} + +/** + * 切换下拉菜单显示/隐藏 + * @param {string} id - 要切换的元素ID + */ +function toggleDropdown(id) { + const element = document.getElementById(id); + if (element) { + element.classList.toggle('show'); + + // 切换箭头方向 + const header = element.previousElementSibling; + if (header) { + const arrow = header.querySelector('.dropdown-arrow i'); + if (arrow) { + arrow.classList.toggle('fa-chevron-down'); + arrow.classList.toggle('fa-chevron-up'); + } + } + } +} + +/** + * 初始化函数 + */ +function init() { + // 初始加载基金数据 + loadAllFundInfo(); + + // 设置自动更新 + updateIntervalId = setInterval(loadAllFundInfo, UPDATE_INTERVAL); + + // 清理函数 + window.addEventListener('beforeunload', cleanup); + + // 为所有下拉菜单添加点击事件委托 + document.addEventListener('click', function(e) { + // 检查是否点击了下拉菜单标题 + const dropdownHeader = e.target.closest('.dropdown-header'); + + if (dropdownHeader) { + // 获取父级dropdown-item元素 + const dropdownItem = dropdownHeader.closest('.dropdown-item'); + if (dropdownItem) { + // 关闭所有其他下拉菜单 + document.querySelectorAll('.dropdown-item').forEach(item => { + if (item !== dropdownItem) { + item.classList.remove('open'); + const arrow = item.querySelector('.dropdown-arrow i'); + if (arrow) { + arrow.classList.remove('fa-chevron-up'); + arrow.classList.add('fa-chevron-down'); + } + } + }); + + // 切换当前下拉菜单 + dropdownItem.classList.toggle('open'); + + // 切换箭头方向 + const arrow = dropdownHeader.querySelector('.dropdown-arrow i'); + if (arrow) { + arrow.classList.toggle('fa-chevron-down'); + arrow.classList.toggle('fa-chevron-up'); + } + } + } else { + // 点击其他地方,关闭所有下拉菜单 + document.querySelectorAll('.dropdown-item').forEach(item => { + item.classList.remove('open'); + const arrow = item.querySelector('.dropdown-arrow i'); + if (arrow) { + arrow.classList.remove('fa-chevron-up'); + arrow.classList.add('fa-chevron-down'); + } + }); + } + }); + + // 初始化排序工具条 + initSortToolbar(); +} + +/** + * 清理函数 + */ +function cleanup() { + if (updateIntervalId) { + clearInterval(updateIntervalId); + updateIntervalId = null; + } + + // 清理所有可能的JSONP回调函数 + Object.keys(window).forEach(key => { + if (key.startsWith('jsonp_callback_')) { + delete window[key]; + } + }); + + // 清理所有JSONP脚本标签 + document.querySelectorAll('script[id^="jsonp_script_"]').forEach(script => { + if (script.parentNode) { + script.parentNode.removeChild(script); + } + }); +} + +// 页面加载完成后初始化 +if (document.readyState === 'loading') { + document.addEventListener('DOMContentLoaded', init); +} else { + init(); +} +/** + * 初始化排序工具条 + */ +function initSortToolbar() { + const container = document.querySelector('.dropdown-container'); + const buttons = document.querySelectorAll('.sort-btn'); + const resetBtn = document.querySelector('.sort-reset'); + if (!container || buttons.length === 0) return; + + const applyActive = (activeBtn) => { + buttons.forEach(btn => btn.classList.toggle('active', btn === activeBtn)); + // 更新箭头指示符 + buttons.forEach(btn => { + const indicator = btn.querySelector('.order-indicator'); + if (indicator) { + indicator.textContent = btn.dataset.order === 'asc' ? '↑' : '↓'; + } + }); + }; + + const sortIpGroups = (key, order) => { + const items = Array.from(container.querySelectorAll('.dropdown-item')); + const getVal = (el) => { + switch (key) { + case 'time': { + const t = el.dataset.latestTime || ''; + // 兼容 YYYY-MM-DD HH:mm:ss + const timeNum = Date.parse(t.replace(/-/g, '/')) || 0; + return timeNum; + } + case 'count': + return parseInt(el.dataset.fundCount || '0', 10); + case 'avg': + return parseFloat(el.dataset.avgChange || '0'); + default: + return 0; + } + }; + + items.sort((a, b) => { + const av = getVal(a); + const bv = getVal(b); + if (av === bv) return 0; + return order === 'asc' ? (av - bv) : (bv - av); + }); + + // 重新插入排序后的元素 + items.forEach(el => container.appendChild(el)); + }; + + // 绑定按钮事件 + buttons.forEach(btn => { + btn.addEventListener('click', () => { + const sortKey = btn.dataset.sort; + const currentOrder = btn.dataset.order || 'desc'; + // 如果重复点击同一按钮,切换升降序 + const newOrder = (btn.classList.contains('active') && currentOrder === 'desc') ? 'asc' : 'desc'; + btn.dataset.order = newOrder; + applyActive(btn); + sortIpGroups(sortKey, newOrder); + }); + }); + + // 重置排序:恢复时间倒序 + if (resetBtn) { + resetBtn.addEventListener('click', () => { + // 所有按钮恢复箭头为倒序 + buttons.forEach(b => { b.dataset.order = 'desc'; }); + const defaultBtn = document.querySelector('.sort-btn[data-sort="time"]'); + if (defaultBtn) { + defaultBtn.dataset.order = 'desc'; + applyActive(defaultBtn); + sortIpGroups('time', 'desc'); + } + }); + } + + // 默认执行一次“按时间倒序”排序,保持与服务端一致 + const defaultBtn = document.querySelector('.sort-btn[data-sort="time"]'); + if (defaultBtn) { + applyActive(defaultBtn); + sortIpGroups('time', defaultBtn.dataset.order || 'desc'); + } +} diff --git a/recommend_fund.php b/recommend_fund.php new file mode 100644 index 0000000..bff077f --- /dev/null +++ b/recommend_fund.php @@ -0,0 +1,566 @@ + 0) { + $file = DATA_DIR . '/recommended_funds.json'; + file_put_contents($file, json_encode($fundsToKeep, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)); + + // 记录清理日志 + logAction('clean_nonexistent_funds', ['funds_removed' => $fundsRemoved]); + } + + return $fundsRemoved; +} + +/** + * 记录操作日志 + * @param string $action 操作类型 + * @param array $data 操作数据 + */ +function logAction($action, $data = []) { + $logFile = DATA_DIR . '/recommend_logs.json'; + $logs = []; + if (file_exists($logFile)) { + $logs = json_decode(file_get_contents($logFile), true) ?? []; + } + + $logs[] = array_merge([ + 'action' => $action, + 'timestamp' => date('Y-m-d H:i:s') + ], $data); + + file_put_contents($logFile, json_encode($logs, JSON_PRETTY_PRINT)); +} + +/** + * 获取基金缓存文件路径 + * @param string $fundCode 基金代码 + * @return string 缓存文件路径 + */ +function getFundCachePath($fundCode) { + return CACHE_DIR . "/fund_{$fundCode}.json"; +} + +/** + * 从缓存获取基金数据 + * @param string $fundCode 基金代码 + * @return array|false 基金数据或false + */ +function getFundFromCache($fundCode) { + $cacheFile = getFundCachePath($fundCode); + if (!file_exists($cacheFile)) { + return false; + } + + // 检查缓存是否过期 + if (time() - filemtime($cacheFile) > FUND_CACHE_TTL) { + return false; + } + + $data = file_get_contents($cacheFile); + if ($data === false) { + return false; + } + + $fundData = json_decode($data, true); + return is_array($fundData) ? $fundData : false; +} + +/** + * 缓存基金数据 + * @param string $fundCode 基金代码 + * @param array $fundData 基金数据 + */ +function cacheFundData($fundCode, $fundData) { + $cacheFile = getFundCachePath($fundCode); + file_put_contents($cacheFile, json_encode($fundData, JSON_UNESCAPED_UNICODE)); +} + +/** + * 从API获取基金信息 + * @param string $fundCode 基金代码 + * @return array|false 基金数据或false + */ +function fetchFundDataFromAPI($fundCode) { + $apiUrl = "http://fundgz.1234567.com.cn/js/{$fundCode}.js?" . time(); + $context = stream_context_create([ + 'http' => [ + 'timeout' => 5, + 'header' => "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36\r\n", + 'ignore_errors' => true + ] + ]); + + $response = @file_get_contents($apiUrl, false, $context); + + if (!$response) { + return false; + } + + // 解析返回的数据 + if (preg_match('/jsonpgz\d*\((.*)\);?/', $response, $matches)) { + $data = json_decode($matches[1], true); + + // 检查数据是否有效 + if (is_array($data) && isset($data['fundcode']) && $data['fundcode'] == $fundCode) { + return $data; + } + } + + return false; +} + +/** + * 检查基金是否存在 + * @param string $fundCode 基金代码 + * @return bool 基金是否存在 + */ +function checkFundExists($fundCode) { + // 基金代码格式验证 + if (!preg_match('/^\d{6}$/', $fundCode)) { + return false; + } + + // 尝试从缓存获取 + $cachedData = getFundFromCache($fundCode); + if ($cachedData) { + return true; + } + + // 从API获取 + $fundData = fetchFundDataFromAPI($fundCode); + if ($fundData) { + // 缓存基金数据 + cacheFundData($fundCode, $fundData); + return true; + } + + return false; +} + +/** + * 获取基金详细信息 + * @param string $fundCode 基金代码 + * @return array|false 基金详细数据或false + */ +function getFundInfo($fundCode) { + // 先尝试从缓存获取 + $cachedData = getFundFromCache($fundCode); + if ($cachedData) { + return $cachedData; + } + + // 从API获取 + $fundData = fetchFundDataFromAPI($fundCode); + if ($fundData) { + // 缓存基金数据 + cacheFundData($fundCode, $fundData); + return $fundData; + } + + return false; +} + +/** + * 保存推荐基金 + * @param string $fundCode 基金代码 + * @param string $ip 用户IP + * @return array 操作结果 + */ +function saveRecommendedFund($fundCode, $ip) { + // 首先检查基金号是否存在 + if (!checkFundExists($fundCode)) { + return ['success' => false, 'message' => '基金号不存在,请输入正确的6位基金代码!']; + } + + // 检查数量限制 + $funds = loadRecommendedFunds(); + $timestamp = date('Y-m-d H:i:s'); + + // 检查基金总数是否已达到上限 + if (count($funds) >= MAX_TOTAL_FUNDS) { + return ['success' => false, 'message' => "推荐基金数量已达到上限({MAX_TOTAL_FUNDS}支)"]; + } + + // 检查IP推荐次数和基金是否已被推荐 + $ipCount = 0; + foreach ($funds as $fund) { + if ($fund['ip'] == $ip) { + $ipCount++; + } + if ($fund['fund_code'] == $fundCode) { + return ['success' => false, 'message' => '该基金已被推荐过']; + } + } + + if ($ipCount >= MAX_FUNDS_PER_IP) { + return ['success' => false, 'message' => "每个IP最多只能推荐{MAX_FUNDS_PER_IP}只基金"]; + } + + // 获取基金信息 + $fundInfo = getFundInfo($fundCode); + $fundName = $fundInfo ? ($fundInfo['name'] ?? '未知基金') : '未知基金'; + + // 添加新基金 + $newFund = [ + 'fund_code' => $fundCode, + 'ip' => $ip, + 'timestamp' => $timestamp, + 'channel' => '网站推荐', + 'amount' => 1000, + 'status' => 'pending', // 默认设为待审核,需要管理员批准 + 'fund_name' => $fundName // 保存基金名称 + ]; + + $funds[] = $newFund; + + // 保存到文件 + $file = DATA_DIR . '/recommended_funds.json'; + file_put_contents($file, json_encode($funds, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE)); + + // 记录操作日志 + logAction('recommend_fund', [ + 'fund_code' => $fundCode, + 'fund_name' => $fundName, + 'ip' => $ip + ]); + + return ['success' => true, 'message' => '基金推荐成功!']; +} + +// 处理推荐请求 +// 从session中获取消息(如果有) +$message = isset($_SESSION['message']) ? $_SESSION['message'] : ''; +$messageType = isset($_SESSION['messageType']) ? $_SESSION['messageType'] : ''; + +// 清除session中的消息,防止刷新页面再次显示 +unset($_SESSION['message'], $_SESSION['messageType']); + +// 定期清理不存在的基金(每10分钟执行一次) +$cleanupFile = DATA_DIR . '/last_cleanup.txt'; +$lastCleanup = @file_get_contents($cleanupFile); +$currentTime = time(); + +// 如果距离上次清理超过10分钟,执行清理 +if (!$lastCleanup || ($currentTime - $lastCleanup) > 600) { + $removedCount = cleanNonExistentFunds(); + file_put_contents($cleanupFile, $currentTime); + + // 如果有基金被清理,记录日志但不显示给用户 + if ($removedCount > 0) { + error_log("清理了{$removedCount}个不存在的基金"); + } +} + +if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['fund_code'])) { + $fundCode = trim($_POST['fund_code']); + $ip = getUserIP(); + + // 简单验证基金代码格式(假设为6位数字) + if (!preg_match('/^\d{6}$/', $fundCode)) { + $_SESSION['message'] = '基金代码格式不正确,请输入6位数字'; + $_SESSION['messageType'] = 'error'; + } else { + $result = saveRecommendedFund($fundCode, $ip); + $_SESSION['message'] = $result['message']; + $_SESSION['messageType'] = $result['success'] ? 'success' : 'error'; + } + + // 重定向到同一页面,实现POST-REDIRECT-GET模式 + header('Location: ' . $_SERVER['PHP_SELF']); + exit; +} + +// 获取IP推荐次数 +$userIp = getUserIP(); +$recommendedFunds = loadRecommendedFunds(); +$userRecommendCount = 0; +foreach ($recommendedFunds as $fund) { + if (isset($fund['ip']) && $fund['ip'] == $userIp) { + $userRecommendCount++; + } +} + +$totalFunds = count($recommendedFunds); + +// 预加载部分基金数据到页面中,提高初始加载速度 +$preloadedFundData = []; +$preloadLimit = 10; // 预加载10个基金的数据 +$preloadCount = 0; + +foreach ($recommendedFunds as $fund) { + if ($preloadCount >= $preloadLimit) break; + + $fundCode = $fund['fund_code'] ?? ''; + if (!empty($fundCode)) { + $fundInfo = getFundInfo($fundCode); + if ($fundInfo) { + $preloadedFundData[$fundCode] = $fundInfo; + $preloadCount++; + } + } +} +?> + + + + + + 基金推荐 - 组合基金监控 + + + + + +
+
+
+

基金推荐

+

推荐您关注的优质基金

+
+
+ +
+ 返回主页 + +
+
+
+
+
您已推荐基金数
+
+
+
+
+
剩余推荐次数
+
+
+
+
+
总推荐基金数
+
+
+ + +
+ +
+ + +
+ 推荐规则: +
    +
  • 每个IP地址最多只能推荐3只基金
  • +
  • 系统最多接受3000支基金推荐
  • +
  • 基金代码为6位数字
  • +
  • 推荐的基金将由管理员审核
  • +
+
+ + = 3 || $totalFunds >= 3000): ?> +
+ 提示: + = 3): ?> + 您已达到每个IP最多推荐3只基金的限制。 + + 系统已达到最大推荐基金数量(3000支)。 + +
+ +
+

推荐新基金

+
+ + +
+ +
+ + + +
+

已推荐基金列表

+ +
+ + + + +
+ + + +
+ +
+ + +
+ + + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..f53d6ff --- /dev/null +++ b/script.js @@ -0,0 +1,1014 @@ +// API配置 +const API_URL = 'api.php?action=fund_data'; +const STATS_URL = 'api.php?action=get_stats'; +const FUND_CHART_API = (code) => `api.php?action=get_fund_chart&fund_code=${code}`; + +// 全局数据存储 +let fundData = null; +let visitStats = null; +// 自动刷新相关变量 +let autoRefreshInterval = null; +const AUTO_REFRESH_INTERVAL = 10000; // 10秒自动刷新一次 +// 取消控制器,避免并发请求 +let fundController = null; +const cardCharts = new Map(); + +// 页面加载完成后初始化 +document.addEventListener('DOMContentLoaded', function() { + // 应用已保存的主题(优先使用用户选择,其次匹配系统偏好) + applySavedTheme(); + + // 添加动画样式 + addAnimationStyles(); + + loadFundData(); + loadVisitStats(); + + // 启动自动刷新 + startAutoRefresh(); + + document.getElementById('refreshBtn').addEventListener('click', function() { + loadFundData(); + loadVisitStats(); + }); + document.getElementById('themeBtn').addEventListener('click', toggleTheme); + document.getElementById('statsBtn').addEventListener('click', function() { + toggleStats(); + loadVisitStats(); // 刷新统计数据 + }); +}); + +/** + * 启动自动刷新基金数据 + */ +function startAutoRefresh() { + // 清除可能存在的旧定时器 + if (autoRefreshInterval) { + clearInterval(autoRefreshInterval); + } + + // 添加防抖变量 + let isLoading = false; + + // 设置新的定时器 + autoRefreshInterval = setInterval(function() { + // 如果上一个请求还在处理中,跳过本次请求 + if (isLoading) { + console.log('上一个请求未完成,跳过本次刷新...'); + return; + } + + console.log('自动刷新基金数据...'); + isLoading = true; + + loadFundData(true).finally(() => { + isLoading = false; + }); + }, AUTO_REFRESH_INTERVAL); +} + +/** + * 停止自动刷新 + */ +function stopAutoRefresh() { + if (autoRefreshInterval) { + clearInterval(autoRefreshInterval); + autoRefreshInterval = null; + } +} + +/** + * 更新页面元素的数值(不刷新整个UI) + * @param {Object} newData - 新的基金数据 + * @param {Object} oldData - 旧的基金数据 + */ +function updateElements(newData, oldData) { + if (!oldData) return; + + const { summary: newSummary, channelStats: newChannelStats } = newData; + const { summary: oldSummary, channelStats: oldChannelStats } = oldData; + + // 更新仪表盘统计数据 + if (newSummary.total !== oldSummary.total) { + const el = document.querySelector('[data-stat="total-funds"]'); + if (el) { + el.textContent = newSummary.total; + el.classList.add('highlight'); + setTimeout(() => el.classList.remove('highlight'), 300); + } + } + if (newSummary.upCount !== oldSummary.upCount) { + const el = document.querySelector('[data-stat="up-funds"]'); + if (el) { + el.textContent = newSummary.upCount; + el.classList.add('highlight'); + setTimeout(() => el.classList.remove('highlight'), 300); + } + } + if (newSummary.downCount !== oldSummary.downCount) { + const el = document.querySelector('[data-stat="down-funds"]'); + if (el) { + el.textContent = newSummary.downCount; + el.classList.add('highlight'); + setTimeout(() => el.classList.remove('highlight'), 300); + } + } + if (formatNumber(newSummary.avgChange) !== formatNumber(oldSummary.avgChange)) { + const el = document.querySelector('[data-stat="avg-change"]'); + if (el) { + el.textContent = formatNumber(newSummary.avgChange) + '%'; + el.classList.add('highlight'); + setTimeout(() => el.classList.remove('highlight'), 300); + } + } + + // 更新总盈亏 + if (newSummary.formattedTotalProfitLoss !== oldSummary.formattedTotalProfitLoss) { + const el = document.querySelector('[data-stat="total-profit"]'); + if (el) { + const profitClass = newSummary.profitLossClass; + el.innerHTML = ` + ${newSummary.profitLossIcon} ${newSummary.formattedTotalProfitLoss} + + ${newSummary.formattedProfitLossRate}% + + `; + el.classList.add('highlight'); + setTimeout(() => el.classList.remove('highlight'), 300); + } + } + + // 更新渠道统计数据 + for (const [channelName, newStats] of Object.entries(newChannelStats)) { + const oldStats = oldChannelStats[channelName]; + if (!oldStats) continue; + + // 更新平均涨跌 + if (formatNumber(newStats.avgChange) !== formatNumber(oldStats.avgChange)) { + const elements = document.querySelectorAll(`.channel-avg-change[data-channel="${channelName}"]`); + elements.forEach(el => { + el.textContent = formatNumber(newStats.avgChange) + '%'; + // 高亮变化的元素 + el.classList.add('highlight'); + setTimeout(() => el.classList.remove('highlight'), 300); + }); + } + + // 更新渠道盈亏 + if (newStats.totalProfitLoss !== oldStats.totalProfitLoss) { + const profitClass = newStats.totalProfitLoss > 0 ? 'profit-positive' : 'profit-negative'; + const profitIcon = newStats.totalProfitLoss > 0 ? '📈' : '📉'; + const elements = document.querySelectorAll(`.channel-profit-section[data-channel="${channelName}"]`); + elements.forEach(el => { + el.className = 'channel-profit-section ' + profitClass; + el.textContent = `${profitIcon} 渠道盈亏: ${formatCurrency(newStats.totalProfitLoss)} (${formatNumber(newStats.profitLossRate)}%)`; + // 高亮变化的元素 + el.classList.add('highlight'); + setTimeout(() => el.classList.remove('highlight'), 300); + }); + } + } + + // 更新基金卡片数据 + for (const [channelName, newStats] of Object.entries(newChannelStats)) { + const oldStats = oldChannelStats[channelName]; + if (!oldStats) continue; + + for (const [fundCode, newFund] of Object.entries(newStats.funds)) { + const oldFund = oldStats.funds[fundCode]; + if (!oldFund) continue; + + // 解析基本数据 + const parsedUnitNetValue = parseFloat(newFund.unit_net_value || newFund.dwjz) || 1; + const parsedCurrentNetValue = parseFloat(newFund.current_net_value || newFund.gsz) || 1; + const parsedShares = parseFloat(newFund.shares || (newFund.investment / parsedUnitNetValue)) || 0; + const todayProfitLoss = parsedShares * (parsedCurrentNetValue - parsedUnitNetValue); + + const oldParsedUnitNetValue = parseFloat(oldFund.unit_net_value || oldFund.dwjz) || 1; + const oldParsedCurrentNetValue = parseFloat(oldFund.current_net_value || oldFund.gsz) || 1; + const oldParsedShares = parseFloat(oldFund.shares || (oldFund.investment / oldParsedUnitNetValue)) || 0; + const oldTodayProfitLoss = oldParsedShares * (oldParsedCurrentNetValue - oldParsedUnitNetValue); + + // 更新估算净值 + if (newFund.gsz !== oldFund.gsz) { + const gszEl = document.querySelector(`.est-net-value[data-fund="${fundCode}"]`); + if (gszEl) { + gszEl.textContent = newFund.gsz; + gszEl.classList.add('highlight'); + setTimeout(() => gszEl.classList.remove('highlight'), 300); + } + } + + // 更新涨跌幅 + if (newFund.gszzl !== oldFund.gszzl) { + const changeEl = document.querySelector(`.change-display[data-fund="${fundCode}"]`); + if (changeEl) { + const change = parseFloat(newFund.gszzl); + const changeDisplayClass = change > 0 ? 'change-positive' : 'change-negative'; + const changeIcon = change > 0 ? '📈' : (change < 0 ? '📉' : '➡️'); + const changeDisplay = change > 0 ? '+' + newFund.gszzl + '%' : newFund.gszzl + '%'; + + changeEl.className = 'change-display ' + changeDisplayClass + ' highlight'; + changeEl.innerHTML = `${changeIcon}${changeDisplay}`; + setTimeout(() => changeEl.classList.remove('highlight'), 300); + } + } + + // 更新今日盈亏 + if (Math.abs(todayProfitLoss - oldTodayProfitLoss) > 0.01) { + const todayProfitEl = document.querySelector(`.today-profit[data-fund="${fundCode}"]`); + if (todayProfitEl) { + const todayProfitClass = todayProfitLoss >= 0 ? 'profit-positive' : 'profit-negative'; + const todayProfitIcon = todayProfitLoss >= 0 ? '📈' : '📉'; + + todayProfitEl.className = 'profit-value today-profit ' + todayProfitClass + ' highlight'; + todayProfitEl.textContent = `${todayProfitIcon} ${formatCurrency(todayProfitLoss)}`; + setTimeout(() => todayProfitEl.classList.remove('highlight'), 300); + } + } + + // 更新更新时间 + if (newFund.gztime !== oldFund.gztime) { + const timeEl = document.querySelector(`.update-time[data-fund="${fundCode}"]`); + if (timeEl) { + timeEl.innerHTML = ` ${newFund.gztime}`; + } + } + } + } +} + +/** + * 加载基金数据 + * @param {boolean} isAutoRefresh - 是否为自动刷新模式 + * @returns {Promise} - 返回Promise以便使用finally方法 + */ +async function loadFundData(isAutoRefresh = false) { + try { + // 只有手动刷新时才显示加载动画 + if (!isAutoRefresh) { + showLoading(); + } + // 若存在未完成的请求,则取消 + if (fundController) { + try { fundController.abort(); } catch (e) {} + } + fundController = new AbortController(); + const response = await fetch(API_URL, { signal: fundController.signal }); + const result = await response.json(); + + if (result.success) { + // 保存旧数据用于比较 + const oldData = { ...fundData }; + + // 更新数据 + fundData = result.data; + + // 更新最后更新时间 + document.getElementById('lastUpdate').innerHTML = ` + 最后更新: ${fundData.timestamp} + `; + + if (isAutoRefresh && oldData) { + // 自动刷新时只更新变化的元素,不重新渲染整个页面 + updateElements(fundData, oldData); + + // 检查是否有数据变化 + const hasDataChanged = JSON.stringify(fundData) !== JSON.stringify(oldData); + if (hasDataChanged) { + showUpdateNotification(); + } + } else { + // 首次加载或手动刷新时重新渲染整个页面 + renderPage(); + } + } else { + throw new Error('API返回错误'); + } + } catch (error) { + // 忽略主动取消造成的错误 + if (error && (error.name === 'AbortError' || error.message === 'The operation was aborted.')) { + return; + } + console.error('加载基金数据失败:', error); + // 只有手动刷新时才显示错误信息 + if (!isAutoRefresh) { + showError('数据加载失败,请稍后重试'); + } + // 重新抛出错误以便外部捕获 + throw error; + } +} + +/** + * 显示数据更新通知 + */ +function showUpdateNotification() { + // 检查是否已存在通知元素 + let notification = document.getElementById('updateNotification'); + + // 如果不存在,创建通知元素 + if (!notification) { + notification = document.createElement('div'); + notification.id = 'updateNotification'; + notification.style.cssText = ` + position: fixed; + bottom: 20px; + right: 20px; + background-color: #4CAF50; + color: white; + padding: 12px 20px; + border-radius: 6px; + box-shadow: 0 2px 10px rgba(0,0,0,0.2); + z-index: 1000; + opacity: 0; + transition: opacity 0.3s ease; + font-size: 14px; + `; + document.body.appendChild(notification); + } + + // 设置通知内容 + notification.textContent = '基金数据已更新'; + + // 显示通知 + notification.style.opacity = '1'; + + // 3秒后隐藏通知 + setTimeout(() => { + notification.style.opacity = '0'; + }, 3000); + + // 添加数据变化的视觉反馈 + highlightChangedElements(); +} + +/** + * 高亮显示变化的元素 + */ +function highlightChangedElements() { + // 为关键数据元素添加高亮效果 + const keyElements = document.querySelectorAll('.fund-item .fund-value, .fund-item .fund-change, .fund-item .fund-profit, .stat-card .stat-number'); + + keyElements.forEach(element => { + // 保存原始样式 + const originalBackground = element.style.backgroundColor; + const originalTransition = element.style.transition; + + // 添加高亮样式 + element.style.backgroundColor = '#fff3cd2d'; + element.style.transition = 'background-color 0.5s ease'; + + // 1.5秒后恢复原始样式 + setTimeout(() => { + element.style.backgroundColor = originalBackground; + element.style.transition = originalTransition; + }, 1500); + }); + + // 为上涨/下跌状态变化的元素添加特殊效果 + const statusElements = document.querySelectorAll('.fund-item .fund-status'); + statusElements.forEach(element => { + // 添加闪烁动画 + element.style.animation = 'pulse 1s ease-in-out 2'; + + // 动画结束后移除动画样式 + setTimeout(() => { + element.style.animation = ''; + }, 2000); + }); +} + +// 添加动画样式 +function addAnimationStyles() { + // 检查是否已存在动画样式 + if (document.getElementById('animationStyles')) return; + + const styleElement = document.createElement('style'); + styleElement.id = 'animationStyles'; + styleElement.textContent = ` + @keyframes pulse { + 0% { opacity: 1; transform: scale(1); } + 50% { opacity: 0.7; transform: scale(1.05); } + 100% { opacity: 1; transform: scale(1); } + } + + .highlight { + animation: highlight 0.3s ease-in-out; + } + + @keyframes highlight { + 0% { background-color: transparent; } + 50% { background-color: rgba(255, 255, 0, 0.03); } + 100% { background-color: transparent; } + } + `; + document.head.appendChild(styleElement); +} + +// 加载访问统计 +async function loadVisitStats() { + try { + const response = await fetch(STATS_URL); + const result = await response.json(); + + if (result.success) { + visitStats = result.data; + updateStatsDisplay(); + } + } catch (error) { + console.error('加载访问统计失败:', error); + } +} + +// 更新统计显示 +function updateStatsDisplay() { + if (!visitStats) return; + + // 更新页脚统计 + document.getElementById('todayVisits').textContent = visitStats.today_visits; + document.getElementById('totalVisits').textContent = visitStats.total_visits; + document.getElementById('uniqueVisitors').textContent = visitStats.unique_visitors; + + // 更新统计面板 + const statsGrid = document.getElementById('statsGrid'); + const recentVisits = document.getElementById('recentVisits'); + + if (statsGrid) { + statsGrid.innerHTML = ` +
+
${visitStats.total_visits}
+
三天访问量
+
+
+
${visitStats.today_visits}
+
今日访问
+
+
+
${visitStats.unique_visitors}
+
独立访客
+
+
+
${visitStats.today_unique_visitors}
+
今日独立访客
+
+ `; + } + + if (recentVisits && visitStats.recent_visits) { + let visitsHTML = '

最近访问记录

'; + + if (visitStats.recent_visits.length === 0) { + visitsHTML += '

暂无访问记录

'; + } else { + visitStats.recent_visits.forEach(visit => { + visitsHTML += ` +
+
+ ${visit.ip} + ${getBrowserInfo(visit.user_agent)} +
+
${formatTime(visit.date)}
+
+ `; + }); + } + + recentVisits.innerHTML = visitsHTML; + } +} + +// 获取浏览器信息 +function getBrowserInfo(userAgent) { + if (userAgent.includes('Chrome')) return 'Chrome'; + if (userAgent.includes('Firefox')) return 'Firefox'; + if (userAgent.includes('Safari')) return 'Safari'; + if (userAgent.includes('Edge')) return 'Edge'; + if (userAgent.includes('MSIE') || userAgent.includes('Trident')) return 'IE'; + return '其他浏览器'; +} + +// 显示/隐藏统计面板 +function toggleStats() { + const panel = document.getElementById('statsPanel'); + if (panel.style.display === 'none') { + panel.style.display = 'block'; + loadVisitStats(); // 确保数据最新 + } else { + panel.style.display = 'none'; + } +} + +// 格式化时间 +function formatTime(dateString) { + const date = new Date(dateString); + const now = new Date(); + const diff = now - date; + + if (diff < 60000) { // 1分钟内 + return '刚刚'; + } else if (diff < 3600000) { // 1小时内 + return Math.floor(diff / 60000) + '分钟前'; + } else if (diff < 86400000) { // 1天内 + return Math.floor(diff / 3600000) + '小时前'; + } else { + return date.toLocaleDateString() + ' ' + date.toLocaleTimeString([], {hour: '2-digit', minute:'2-digit'}); + } +} + +// 显示加载状态 +function showLoading() { + document.getElementById('content').innerHTML = ` +
+
+

正在加载基金数据...

+
+ `; +} + +// 显示错误信息 +function showError(message) { + document.getElementById('content').innerHTML = ` +
+

数据加载失败

+

${message}

+
+ `; +} + +// 渲染页面 +function renderPage() { + if (!fundData) return; + + const { summary, channelStats, errors, timestamp } = fundData; + + // 更新最后更新时间 + document.getElementById('lastUpdate').innerHTML = ` + 最后更新: ${timestamp} + `; + + // 构建页面内容 + let contentHTML = ` +
+
+
+
${summary.total}
+
监控基金
+
+ +
+
+
${summary.upCount}
+
上涨
+
+ +
+
+
${summary.downCount}
+
下跌
+
+ +
+
+
${formatNumber(summary.avgChange)}%
+
平均涨跌
+
+ +
+
+
${summary.formattedTotalInvestment}
+
总投资
+
+ +
+
+
+ ${summary.profitLossIcon} ${summary.formattedTotalProfitLoss} + + ${summary.formattedProfitLossRate}% + +
+
总盈亏
+
+
+ `; + + // 渠道统计 + contentHTML += '
'; + for (const [channelName, stats] of Object.entries(channelStats)) { + const channelClass = getChannelClass(channelName); + const profitClass = stats.totalProfitLoss > 0 ? 'profit-positive' : 'profit-negative'; + const profitIcon = stats.totalProfitLoss > 0 ? '📈' : '📉'; + + contentHTML += ` +
+
+
${getChannelIcon(channelName)}
+
${channelName}
+
+
+
+
基金数量
+
${stats.count} 只
+
+
+
平均涨跌
+
${formatNumber(stats.avgChange)}%
+
+
+
投资金额
+
${formatCurrency(stats.totalInvestment)}
+
+
+
当前价值
+
${formatCurrency(stats.totalCurrentValue)}
+
+
+
+ ${profitIcon} 渠道盈亏: ${formatCurrency(stats.totalProfitLoss)} (${formatNumber(stats.profitLossRate)}%) +
+
+ `; + } + contentHTML += '
'; + + // 错误信息 + if (errors && errors.length > 0) { + contentHTML += ` +
+

数据获取异常

+
    + ${errors.map(error => `
  • ${error}
  • `).join('')} +
+
+ `; + } + + // 基金卡片 + contentHTML += generateChannelSections(channelStats); + + document.getElementById('content').innerHTML = contentHTML; + + // 添加动画效果 + setTimeout(() => { + const cards = document.querySelectorAll('.fund-card, .stat-card, .channel-stat-card'); + cards.forEach((card, index) => { + card.style.animationDelay = (index * 0.05) + 's'; + }); + }, 100); + + // 绑定基金卡片点击翻转与图表加载 + bindFundCardFlipEvents(); +} + +// 绑定基金卡片翻转与图表加载 +function bindFundCardFlipEvents() { + const cards = document.querySelectorAll('.flip-card'); + cards.forEach(card => { + card.addEventListener('click', async (e) => { + const fundCode = card.getAttribute('data-fundcode'); + const isFlipped = card.classList.contains('flipped'); + if (!isFlipped) { + card.classList.add('flipped'); + await loadCardChart(fundCode, card); + } else { + card.classList.remove('flipped'); + destroyCardChart(fundCode); + } + }); + + // 背面关闭按钮只控制翻回 + const closeBtn = card.querySelector('.flip-close'); + if (closeBtn) { + closeBtn.addEventListener('click', (e) => { + e.stopPropagation(); + card.classList.remove('flipped'); + const fundCode = card.getAttribute('data-fundcode'); + destroyCardChart(fundCode); + }); + } + + // 阻止点击图表容器导致翻回(便于交互) + const chartContainer = card.querySelector('.card-back .chart-container'); + if (chartContainer) { + chartContainer.addEventListener('click', (e) => e.stopPropagation()); + chartContainer.addEventListener('touchstart', (e) => e.stopPropagation(), { passive: true }); + } + }); +} + +async function loadCardChart(fundCode, cardEl) { + try { + const response = await fetch(FUND_CHART_API(fundCode)); + const result = await response.json(); + if (!result.success) throw new Error(result.message || '图表数据加载失败'); + renderCardChart(fundCode, result.data, cardEl); + } catch (err) { + console.error('加载卡片图表失败:', err); + const container = cardEl.querySelector('.card-back .chart-container'); + if (container) { + container.innerHTML = `
图表加载失败:${err.message}
`; + } + } +} + +function renderCardChart(fundCode, chartData, cardEl) { + const canvas = cardEl.querySelector(`#fund-chart-${fundCode}`); + if (!canvas) return; + const ctx = canvas.getContext('2d'); + const isDark = document.body.classList.contains('theme-dark'); + const axisColor = isDark ? '#cbd5e1' : '#374151'; + const gridColor = isDark ? 'rgba(203,213,225,0.15)' : 'rgba(55,65,81,0.15)'; + const lineColor = '#6366f1'; + const fillColor = isDark ? 'rgba(99,102,241,0.15)' : 'rgba(99,102,241,0.2)'; + + if (cardCharts.has(fundCode)) { + try { cardCharts.get(fundCode).destroy(); } catch (e) {} + cardCharts.delete(fundCode); + } + + const chart = new Chart(ctx, { + type: 'line', + data: { + labels: chartData.labels, + datasets: [{ + label: '估算净值', + data: chartData.netValues, + borderColor: lineColor, + backgroundColor: fillColor, + borderWidth: 3, + fill: true, + tension: 0.4, + pointRadius: 3, + pointHoverRadius: 6, + pointBackgroundColor: '#ffffff', + pointBorderColor: lineColor, + pointBorderWidth: 2 + }] + }, + options: { + responsive: true, + maintainAspectRatio: false, + plugins: { + legend: { display: false }, + tooltip: { mode: 'index', intersect: false } + }, + scales: { + x: { ticks: { color: axisColor }, grid: { color: gridColor } }, + y: { ticks: { color: axisColor }, grid: { color: gridColor } } + } + } + }); + cardCharts.set(fundCode, chart); +} + +function destroyCardChart(fundCode) { + if (cardCharts.has(fundCode)) { + try { cardCharts.get(fundCode).destroy(); } catch (e) {} + cardCharts.delete(fundCode); + } +} + +// 生成渠道分组的基金卡片 +function generateChannelSections(channelStats) { + let html = ''; + + for (const [channelName, stats] of Object.entries(channelStats)) { + // 按涨跌幅排序 + const sortedFunds = Object.entries(stats.funds) + .sort(([,a], [,b]) => parseFloat(b.gszzl) - parseFloat(a.gszzl)); + + const channelClass = getChannelClass(channelName); + const channelIcon = getChannelIcon(channelName); + + html += ` +
+
+
${channelIcon}
+
+

${channelName}渠道

+

${getChannelDescription(channelName)}

+
+
+
+ `; + + let rank = 1; + for (const [fundCode, fund] of sortedFunds) { + const change = parseFloat(fund.gszzl); + const changeClass = change > 0 ? 'positive' : (change < 0 ? 'negative' : ''); + const changeDisplayClass = change > 0 ? 'change-positive' : 'change-negative'; + const changeIcon = change > 0 ? '📈' : (change < 0 ? '📉' : '➡️'); + const changeDisplay = change > 0 ? '+' + fund.gszzl + '%' : fund.gszzl + '%'; + + // 历史涨幅样式 + // 添加调试代码确保昨日涨幅数据正确处理 + console.log(`基金${fund.fundcode}昨日涨幅数据:`, { + yesterday_change: fund.yesterday_change, + formatted_yesterday_change: fund.formatted_yesterday_change + }); + + const yesterdayChange = fund.yesterday_change || 0; // 确保有默认值 + const yesterdayChangeClass = yesterdayChange > 0 ? 'profit-positive' : (yesterdayChange < 0 ? 'profit-negative' : ''); + + // 盈亏信息 + const investment = fund.investment; + const currentValue = fund.current_value; + const profitLoss = fund.profit_loss; + const profitLossRate = (profitLoss / investment) * 100; + + // 份额和净值信息(从后端新计算的数据) + const shares = (fund.shares || (investment / (parseFloat(fund.dwjz) || 1))).toFixed(4); + const unitNetValue = (fund.unit_net_value || parseFloat(fund.dwjz)).toFixed(4); + const currentNetValue = (fund.current_net_value || parseFloat(fund.gsz)).toFixed(4); + + // 解析基本数据 + const parsedCurrentNetValue = parseFloat(currentNetValue); // 当日净值 + const parsedUnitNetValue = parseFloat(unitNetValue); // 前一日净值(昨日单位净值) + const parsedShares = parseFloat(shares); // 份额 + + // 计算标准涨幅 + const todayChange = parsedUnitNetValue !== 0 ? ((parsedCurrentNetValue - parsedUnitNetValue) / parsedUnitNetValue) * 100 : 0; + + // 计算今日盈亏(基于净值变化) + const todayProfitLoss = parsedShares * (parsedCurrentNetValue - parsedUnitNetValue); + + // 计算今日价值(累计方式) + const calculatedCurrentValue = parsedShares * parsedCurrentNetValue; // 直接计算当前价值 + + // 添加日志以调试计算问题 + // if (fund.fundcode === '012863') { + // console.log(`基金012863计算详情:`); + // console.log(`- 份额: ${parsedShares.toFixed(4)}`); + // console.log(`- 前一日净值: ${parsedUnitNetValue.toFixed(4)}`); + // console.log(`- 当日净值: ${parsedCurrentNetValue.toFixed(4)}`); + // console.log(`- 计算的标准涨幅: ${todayChange.toFixed(2)}%`); + // console.log(`- 投资金额: ${investment.toFixed(2)}元`); + // console.log(`- 今日盈亏: ${todayProfitLoss.toFixed(2)}元 (份额 × (当日净值 - 昨日单位净值))`); + // console.log(`- 当前价值: ${calculatedCurrentValue.toFixed(2)}元 (份额 × 当日净值)`); + // } + + + + // 今日盈亏样式 + const todayProfitClass = todayProfitLoss >= 0 ? 'profit-positive' : 'profit-negative'; + const todayProfitIcon = todayProfitLoss >= 0 ? '📈' : '📉'; + + html += ` +
+
+
+
+
+ ${fund.name} + #${rank} +
+
${fund.fundcode}
+
+ +
+
+
单位净值
+
${fund.dwjz}
+
+
+
估算净值
+
${fund.gsz}
+
+
+
昨日涨幅
+
+ ${fund.formatted_yesterday_change} +
+
+
+ +
+ ${changeIcon} + ${changeDisplay} +
+ +
+
+ 持仓: + ${formatCurrency(investment)} +
+
+ 份额: + ${shares} +
+
+ 净值: + ${unitNetValue} +
+
+ 当前净值: + ${currentNetValue} +
+ + +
+ 今日盈亏: + + ${todayProfitIcon} ${formatCurrency(todayProfitLoss)} + +
+ +
+ +
+
+ ${channelIcon} ${channelName} +
+
+ ${fund.gztime} +
+
+ +
+ 建议: ${channelName}申购 +
+
+
+ +
+ +
+
+
+
+ `; + rank++; + } + + html += '
'; + } + + return html; +} + +// 工具函数 +function formatNumber(number) { + return Number(number).toFixed(2); +} + +function formatCurrency(amount) { + if (amount >= 10000) { + return (amount / 10000).toFixed(2) + '万元'; + } + return amount.toFixed(2) + '元'; +} + +function getChannelClass(channelName) { + const channelMap = { + '招商银行': 'cmb', + '天天基金': 'tt', + '支付宝': 'zfb' + }; + return channelMap[channelName] || 'cmb'; +} + +function getChannelIcon(channelName) { + const iconMap = { + '招商银行': '🏦', + '天天基金': '📱', + '支付宝': '💙' + }; + return iconMap[channelName] || '🏦'; +} + +function getChannelDescription(channelName) { + const descMap = { + '招商银行': '银行渠道,申购费率较低,服务稳定', + '天天基金': '专业基金平台,品种齐全,数据精准', + '支付宝': '便捷支付,操作简单,用户体验佳' + }; + return descMap[channelName] || '基金购买渠道'; +} + +function toggleTheme() { + const body = document.body; + const isDark = body.classList.toggle('theme-dark'); + try { + localStorage.setItem('theme', isDark ? 'dark' : 'light'); + } catch (e) { /* 忽略存储错误 */ } +} + +/** + * 根据本地存储或系统偏好应用主题 + */ +function applySavedTheme() { + let saved = null; + try { + saved = localStorage.getItem('theme'); + } catch (e) { /* 忽略 */ } + const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches; + const useDark = saved ? (saved === 'dark') : prefersDark; + if (useDark) { + document.body.classList.add('theme-dark'); + } else { + document.body.classList.remove('theme-dark'); + } +} + +// 自动刷新机制已在startAutoRefresh函数中实现 diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..0a2df45 --- /dev/null +++ b/styles.css @@ -0,0 +1,967 @@ +:root { + --primary: #6366f1; + --primary-dark: #4f46e5; + --success: #10b981; + --danger: #ef4444; + --warning: #f59e0b; + --info: #3b82f6; + --dark: #1f2937; + --light: #f8fafc; + --gray: #6b7280; + --border: #e5e7eb; +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +body { + font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; + background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); + min-height: 100vh; + color: #334155; + line-height: 1.5; +} + +/* 暗色主题背景与基础颜色 */ +body.theme-dark { + background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%); + color: #e5e7eb; +} + +.container { + max-width: 1400px; + margin: 0 auto; + padding: 15px; +} + +/* 头部样式 */ +.header { + text-align: center; + margin-bottom: 25px; + color: white; +} + +.header-content { + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + padding: 20px; + border-radius: 16px; + border: 1px solid rgba(255, 255, 255, 0.2); +} + +.header h1 { + font-size: 2.2rem; + font-weight: 700; + margin-bottom: 8px; + background: linear-gradient(45deg, #fff, #e0f2fe); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +.header p { + font-size: 1rem; + opacity: 0.9; + margin-bottom: 15px; +} + +/* 控制按钮 */ +.controls { + display: flex; + justify-content: center; + gap: 12px; + margin-bottom: 20px; + flex-wrap: wrap; +} + +.btn { + padding: 10px 18px; + border: none; + border-radius: 10px; + font-size: 0.9rem; + font-weight: 600; + cursor: pointer; + transition: all 0.3s ease; + display: flex; + align-items: center; + gap: 6px; +} + +.btn-primary { + background: linear-gradient(135deg, var(--primary), var(--primary-dark)); + color: white; +} + +.btn-primary:hover { + transform: translateY(-2px); +} + +.btn-outline { + background: rgba(255, 255, 255, 0.1); + color: white; + border: 2px solid rgba(255, 255, 255, 0.3); +} + +.btn-outline:hover { + background: rgba(255, 255, 255, 0.2); +} + +/* 暗色主题下的卡片与边框微调 */ +body.theme-dark .stat-card, +body.theme-dark .fund-card, +body.theme-dark .channel-stat-card, +body.theme-dark .content { + background: #111827; + border-color: rgba(255, 255, 255, 0.08); + color: #e5e7eb; +} +body.theme-dark .stat-label { opacity: 0.85; } +body.theme-dark .last-update { color: #e5e7eb; } + +/* 统计面板样式 */ +.stats-panel { + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + border-radius: 16px; + padding: 20px; + margin-bottom: 25px; + border: 1px solid rgba(255, 255, 255, 0.2); + color: white; +} + +.stats-header { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 15px; +} + +.stats-title { + font-size: 1.3rem; + font-weight: 700; + display: flex; + align-items: center; + gap: 10px; +} + +.stats-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 15px; +} + +.stat-item { + background: rgba(255, 255, 255, 0.1); + padding: 15px; + border-radius: 12px; + text-align: center; + border: 1px solid rgba(255, 255, 255, 0.1); +} + +.stat-value { + font-size: 1.8rem; + font-weight: 800; + margin-bottom: 5px; + background: linear-gradient(45deg, #fff, #e0f2fe); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; +} + +.stat-label { + font-size: 0.85rem; + opacity: 0.9; +} + +.stats-toggle { + background: rgba(255, 255, 255, 0.2); + border: none; + color: white; + padding: 8px 16px; + border-radius: 8px; + cursor: pointer; + font-size: 0.9rem; + transition: all 0.3s ease; +} + +.stats-toggle:hover { + background: rgba(255, 255, 255, 0.3); +} + +.recent-visits { + margin-top: 20px; + padding-top: 20px; + border-top: 1px solid rgba(255, 255, 255, 0.2); +} + +.visit-item { + display: flex; + justify-content: space-between; + align-items: center; + padding: 8px 0; + border-bottom: 1px solid rgba(255, 255, 255, 0.1); + font-size: 0.85rem; +} + +.visit-item:last-child { + border-bottom: none; +} + +.visit-ip { + font-family: 'Monaco', 'Consolas', monospace; + background: rgba(255, 255, 255, 0.1); + padding: 2px 6px; + border-radius: 4px; +} + +.visit-time { + opacity: 0.8; +} + +/* 仪表盘样式 */ +.dashboard { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); + gap: 16px; + margin-bottom: 25px; +} + +.stat-card { + background: white; + padding: 20px 15px; + border-radius: 14px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); + text-align: center; + transition: all 0.3s ease; + border: 1px solid var(--border); +} + +.stat-card:hover { + transform: translateY(-3px); + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); +} + +.stat-icon { + font-size: 1.8rem; + margin-bottom: 10px; + opacity: 0.8; +} + +.stat-number { + font-size: 1.6rem; + font-weight: 800; + margin-bottom: 5px; + line-height: 1.2; +} + +.stat-label { + font-size: 0.85rem; + color: var(--gray); + font-weight: 600; +} + +.stat-subtext { + font-size: 0.75rem; + color: var(--gray); + margin-top: 4px; + opacity: 0.7; +} + +/* 特殊卡片样式 */ +.total-funds .stat-number { color: var(--info); } +.up-funds .stat-number { color: var(--danger); } +.down-funds .stat-number { color: var(--success); } +.avg-change .stat-number { color: var(--warning); } +.total-investment .stat-number { color: var(--primary); } + +.total-profit .stat-number { + display: flex; + align-items: center; + justify-content: center; + gap: 8px; + flex-wrap: wrap; +} + +.profit-badge, .loss-badge { + color: white; + padding: 4px 10px; + border-radius: 12px; + font-size: 0.8rem; + font-weight: 600; +} + +.profit-badge { + background: linear-gradient(135deg, var(--success), #059669); +} + +.loss-badge { + background: linear-gradient(135deg, var(--danger), #dc2626); +} + +/* 渠道统计 */ +.channel-dashboard { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); + gap: 16px; + margin-bottom: 25px; +} + +.channel-stat-card { + background: white; + padding: 18px; + border-radius: 14px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); + transition: all 0.3s ease; + border-left: 4px solid; +} + +.channel-stat-card:hover { + transform: translateY(-3px); + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); +} + +.channel-stat-card.cmb { border-left-color: #e74c3c; } +.channel-stat-card.tt { border-left-color: #3498db; } +.channel-stat-card.zfb { border-left-color: #27ae60; } + +.channel-header { + display: flex; + align-items: center; + margin-bottom: 15px; +} + +.channel-icon { + font-size: 1.5rem; + margin-right: 10px; + width: 40px; + height: 40px; + border-radius: 10px; + display: flex; + align-items: center; + justify-content: center; + background: linear-gradient(135deg, #667eea, #764ba2); + color: white; +} + +.channel-name { + font-size: 1.1rem; + font-weight: 700; + color: var(--dark); +} + +.channel-details { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + margin-bottom: 15px; +} + +.channel-detail-item { + text-align: center; + padding: 8px; + background: #f8fafc; + border-radius: 8px; +} + +.channel-detail-label { + font-size: 0.75rem; + color: var(--gray); + margin-bottom: 4px; + font-weight: 600; +} + +.channel-detail-value { + font-size: 0.9rem; + font-weight: 700; + color: var(--dark); +} + +.channel-profit-section { + text-align: center; + padding: 10px; + border-radius: 8px; + font-weight: 700; + font-size: 0.9rem; + margin-top: 8px; +} + +.profit-positive { + background: linear-gradient(135deg, #dcfce7, #bbf7d0); + color: #166534; +} + +.profit-negative { + background: linear-gradient(135deg, #fee2e2, #fecaca); + color: #dc2626; +} + +/* 基金卡片网格 */ +.funds-grid { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); + gap: 16px; + margin-bottom: 25px; +} + +.fund-card { + background: white; + border-radius: 14px; + padding: 18px; + box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); + transition: all 0.3s ease; + border-left: 4px solid var(--info); +} + +.fund-card:hover { + transform: translateY(-3px); + box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); +} + +.fund-card.positive { + border-left-color: var(--danger); + background: linear-gradient(135deg, #fff, #fef2f2); +} + +.fund-card.negative { + border-left-color: var(--success); + background: linear-gradient(135deg, #fff, #f0fdf4); +} + +.fund-header { + display: flex; + justify-content: space-between; + align-items: flex-start; + margin-bottom: 12px; +} + +.fund-name { + font-size: 1rem; + font-weight: 700; + color: var(--dark); + flex: 1; + line-height: 1.3; +} + +.fund-code { + background: #eef2ff; + padding: 4px 8px; + border-radius: 10px; + font-size: 0.8rem; + color: var(--primary); + font-weight: 600; + font-family: 'Monaco', 'Consolas', monospace; +} + +.fund-details { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 10px; + margin-bottom: 12px; +} + +.detail-item { + text-align: center; + padding: 10px; + background: #f8fafc; + border-radius: 8px; +} + +.detail-label { + font-size: 0.75rem; + color: var(--gray); + margin-bottom: 4px; + font-weight: 600; +} + +.detail-value { + font-size: 0.9rem; + font-weight: 700; + color: var(--dark); +} + +/* 昨天涨幅显示样式 */ +.yesterday-change { + font-weight: 800; + font-size: 0.95rem; + transition: all 0.3s ease; +} + +.change-display { + text-align: center; + padding: 10px; + border-radius: 10px; + font-size: 1.1rem; + font-weight: 800; + margin-bottom: 12px; +} + +.change-positive { + background: linear-gradient(135deg, #fef2f2, #fee2e2); + color: var(--danger); +} + +.change-negative { + background: linear-gradient(135deg, #f0fdf4, #dcfce7); + color: var(--success); +} + +.change-icon { + font-size: 1rem; + margin-right: 5px; +} + +.profit-section { + background: #f8fafc; + border-radius: 10px; + padding: 12px; + margin-bottom: 12px; +} + +.profit-row { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 6px; + font-size: 0.85rem; +} + +.profit-row:last-child { + margin-bottom: 0; + padding-top: 6px; + border-top: 1px solid var(--border); + font-weight: 800; +} + +.profit-label { + color: var(--gray); + font-weight: 600; +} + +.profit-value { + font-weight: 700; +} + +.profit-positive { + color: var(--danger); +} + +.profit-negative { + color: var(--success); +} + +.channel-info { + display: flex; + justify-content: space-between; + align-items: center; + margin-top: 10px; + padding-top: 10px; + border-top: 1px solid var(--border); +} + +.channel-badge { + padding: 5px 10px; + border-radius: 12px; + font-size: 0.75rem; + font-weight: 700; + color: red; + display: flex; + align-items: center; + gap: 4px; +} + +.channel-cmb { + background: linear-gradient(135deg, #e74c3c, #c0392b); +} + +.channel-tt { + background: linear-gradient(135deg, #3498db, #2980b9); +} + +.channel-zfb { + background: linear-gradient(135deg, #27ae60, #229954); +} + +.update-time { + font-size: 0.75rem; + color: var(--gray); + font-weight: 600; +} + +.rank-badge { + background: linear-gradient(135deg, var(--primary), var(--primary-dark)); + color: white; + padding: 2px 8px; + border-radius: 10px; + font-size: 0.7rem; + font-weight: 700; + margin-left: 6px; +} + +.buy-hint { + font-size: 0.75rem; + color: #000000; + margin-top: 8px; + padding: 8px; + background: #f8fafc; + border-radius: 6px; + border-left: 3px solid var(--warning); +} + +/* 错误信息 */ +.error-section { + background: linear-gradient(135deg, #fef3c7, #fef3c7); + border: 1px solid #f59e0b; + border-radius: 10px; + padding: 15px; + margin-bottom: 20px; +} + +.error-section h3 { + color: #92400e; + margin-bottom: 10px; + display: flex; + align-items: center; + gap: 6px; + font-size: 1rem; +} + +.error-list { + list-style: none; +} + +.error-list li { + padding: 4px 0; + color: #92400e; + display: flex; + align-items: center; + gap: 6px; + font-size: 0.85rem; +} + +/* 页脚 */ +.footer { + text-align: center; + color: white; + margin-top: 30px; + padding-top: 20px; + border-top: 1px solid rgba(255, 255, 255, 0.3); +} + +.last-update { + background: rgba(255, 255, 255, 0.1); + backdrop-filter: blur(10px); + padding: 12px; + border-radius: 10px; + margin-bottom: 12px; + font-size: 0.9rem; +} + +/* 动画 */ +@keyframes fadeInUp { + from { + opacity: 0; + transform: translateY(20px); + } + to { + opacity: 1; + transform: translateY(0); + } +} + +.fund-card, .stat-card, .channel-stat-card { + animation: fadeInUp 0.4s ease-out forwards; + opacity: 0; +} + +/* 加载状态 */ +.loading { + text-align: center; + padding: 40px; + color: white; + font-size: 1.2rem; +} + +.loading-spinner { + display: inline-block; + width: 40px; + height: 40px; + border: 4px solid rgba(255, 255, 255, 0.3); + border-radius: 50%; + border-top-color: #fff; + animation: spin 1s ease-in-out infinite; + margin-bottom: 15px; +} + +@keyframes spin { + to { transform: rotate(360deg); } +} + +/* 遵循系统减少动画偏好 */ +@media (prefers-reduced-motion: reduce) { + * { + animation: none !important; + transition: none !important; + } +} + +/* 响应式设计 */ +@media (max-width: 768px) { + .container { + padding: 10px; + } + + .header h1 { + font-size: 1.8rem; + } + + .dashboard { + grid-template-columns: repeat(2, 1fr); + gap: 12px; + } + + .channel-dashboard { + grid-template-columns: 1fr; + } + + .funds-grid { + grid-template-columns: 1fr; + } + + .fund-details { + grid-template-columns: 1fr; + } + + .channel-details { + grid-template-columns: 1fr; + } + + .controls { + flex-direction: column; + } + + .btn { + width: 100%; + justify-content: center; + } + + .channel-info { + flex-direction: column; + gap: 8px; + align-items: flex-start; + } + + .profit-row { + flex-direction: column; + align-items: flex-start; + gap: 2px; + } + + .stats-grid { + grid-template-columns: repeat(2, 1fr); + } + + .stats-header { + flex-direction: column; + gap: 10px; + align-items: flex-start; + } +} + +@media (max-width: 480px) { + .dashboard { + grid-template-columns: 1fr; + } + + .stat-card { + padding: 15px 10px; + } + + .fund-card { + padding: 15px; + } + + .stats-grid { + grid-template-columns: 1fr; + } +} +/* 昨日涨幅样式 */ +.yesterday-change { + font-weight: 700; + font-size: 0.9rem; +} + +.yesterday-change.profit-positive { + color: var(--danger); + font-weight: 800; +} + +.yesterday-change.profit-negative { + color: var(--success); + font-weight: 800; +} + +/* 响应式调整 */ +@media (max-width: 768px) { + .fund-details { + grid-template-columns: 1fr; + } +} + +/* 暗黑主题:变量覆盖与文字对比度修复 */ +body.theme-dark { + /* 提升暗黑模式下的全局文字可读性 */ + --dark: #e5e7eb; /* 原为深灰,暗黑下改为浅灰 */ + --gray: #cbd5e1; /* 次级文字颜色变浅 */ + --border: #1f2937; /* 边框在暗色背景下的可见性 */ +} + +/* 基金卡片整体与常见文本 */ +body.theme-dark .fund-card { + background: #111827; + color: #e5e7eb; + border-color: var(--border); +} + +/* 正/负卡片在暗黑主题下不再使用浅色渐变,保持一致暗底 */ +body.theme-dark .fund-card.positive, +body.theme-dark .fund-card.negative { + background: #0b1320; +} + +/* 卡片内标题与数值文字提升对比度 */ +body.theme-dark .fund-name, +body.theme-dark .detail-value, +body.theme-dark .channel-name, +body.theme-dark .channel-detail-value { + color: #74a2ff; +} + +/* 次要说明文字颜色适配暗黑主题 */ +body.theme-dark .detail-label, +body.theme-dark .update-time, +body.theme-dark .profit-label, +body.theme-dark .stat-label, +body.theme-dark .stat-subtext { + color: #cbd5e1; +} + +/* 代码徽章在暗色背景下的可读性提升 */ +body.theme-dark .fund-code { + background: #1f2937; + color: #93c5fd; /* 浅蓝提高对比 */ +} + +/* 细节块与收益块背景统一暗色,并提升边框对比 */ +body.theme-dark .channel-detail-item, +body.theme-dark .detail-item, +body.theme-dark .profit-section { + background: #0b1320; + border-color: var(--border); +} + +/* 渠道统计卡片暗黑配色 */ +body.theme-dark .channel-dashboard .channel-stat-card { + background: #111827; + color: #e5e7eb; +} + +/* 涨跌显示在暗底下采用更清晰的配色 */ +body.theme-dark .change-positive { + background: linear-gradient(135deg, #1f2937, #0b1320); + color: #fca5a5; /* 浅红 */ +} +body.theme-dark .change-negative { + background: linear-gradient(135deg, #1f2937, #0b1320); + color: #86efac; /* 浅绿 */ +} + +/* 卡片翻转动画样式 */ +.flip-card { + perspective: 1000px; +} + +.flip-inner { + position: relative; + width: 100%; + height: 100%; + transform-style: preserve-3d; + transition: transform 0.6s ease; +} + +.flip-card.flipped .flip-inner { + transform: rotateY(180deg); +} + +.card-face { + position: absolute; + top: 0; + left: 0; + width: 100%; + backface-visibility: hidden; +} + +.card-front { + position: relative; +} + +.card-back { + transform: rotateY(180deg); + padding: 10px; +} + +/* 卡片背面图表容器 */ +.card-back .chart-container { + width: 100%; + height: 220px; +} + +.card-back canvas { + width: 100% !important; + height: 220px !important; +} + +/* 暗色主题下卡片背面 */ +body.theme-dark .card-back { + background: #111827; +} + +/* 移动端适配:翻转卡片与图表尺寸 */ +@media (max-width: 480px) { + .flip-card { + touch-action: manipulation; + } + .card-back .chart-container { + height: 160px; + } + .card-back canvas { + height: 160px !important; + } +} + +/* 卡片背面关闭按钮 */ +.flip-close { + position: absolute; + top: 8px; + right: 8px; + background: rgba(0,0,0,0.05); + border: none; + color: #374151; + padding: 6px 10px; + border-radius: 8px; + cursor: pointer; + font-weight: 700; + line-height: 1; +} + +.flip-close:hover { + background: rgba(0,0,0,0.1); +} + +body.theme-dark .flip-close { + background: rgba(255,255,255,0.06); + color: #e5e7eb; +} +body.theme-dark .flip-close:hover { + background: rgba(255,255,255,0.12); +} diff --git a/test_email.php b/test_email.php new file mode 100644 index 0000000..87e8fd4 --- /dev/null +++ b/test_email.php @@ -0,0 +1,17 @@ +测试邮件

这是一封来自基金监控系统的测试邮件。

测试时间:" . date('Y-m-d H:i:s') . "

"; + +// 发送测试邮件 +if ($api->testEmail($subject, $body)) { + echo "邮件发送成功!"; +} else { + echo "邮件发送失败!"; +} +?> \ No newline at end of file diff --git a/test_fund_email.php b/test_fund_email.php new file mode 100644 index 0000000..329fd03 --- /dev/null +++ b/test_fund_email.php @@ -0,0 +1,15 @@ +sendFundStatusEmail(); + +if ($result) { + echo "基金情况邮件发送成功!"; +} else { + echo "基金情况邮件发送失败或不需要发送。"; +} diff --git a/test_fund_monitor_email.php b/test_fund_monitor_email.php new file mode 100644 index 0000000..42d928f --- /dev/null +++ b/test_fund_monitor_email.php @@ -0,0 +1,25 @@ +getFundData(); + +// 使用API中已有的格式化方法生成邮件内容 +$subject = "当前基金监控邮件 - " . date('Y年m月d日 H:i'); + +// 创建一个反射对象来访问私有方法 +$reflection = new ReflectionClass($api); +$formatMethod = $reflection->getMethod('formatFundEmailContent'); +$formatMethod->setAccessible(true); +$body = $formatMethod->invoke($api, $fundData); + +// 发送监控邮件 +if ($api->testEmail($subject, $body)) { + echo "当前基金监控邮件发送成功!"; +} else { + echo "当前基金监控邮件发送失败!"; +} +?> \ No newline at end of file diff --git a/utils/ApiBase.php b/utils/ApiBase.php new file mode 100644 index 0000000..f0fbff5 --- /dev/null +++ b/utils/ApiBase.php @@ -0,0 +1,144 @@ + $method, + 'action' => $action, + 'params' => $params + ]; + } + + /** + * 发送JSON响应 + * @param mixed $data 要发送的数据 + * @param int $statusCode HTTP状态码(默认200) + */ + protected function sendResponse($data, $statusCode = 200) { + http_response_code($statusCode); + echo json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE); + } + + /** + * 发送错误响应 + * @param string $message 错误信息 + * @param int $statusCode HTTP状态码(默认400) + */ + protected function sendError($message, $statusCode = 400) { + $this->sendResponse([ + 'success' => false, + 'message' => $message + ], $statusCode); + } + + /** + * 发送成功响应 + * @param mixed $data 响应数据(默认空数组) + * @param string $message 成功信息(默认空字符串) + */ + protected function sendSuccess($data = [], $message = '') { + $response = [ + 'success' => true + ]; + + if (!empty($data)) { + $response['data'] = $data; + } + + if (!empty($message)) { + $response['message'] = $message; + } + + $this->sendResponse($response); + } + + /** + * 处理OPTIONS请求 + */ + protected function handleOptionsRequest() { + if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { + exit(0); + } + } + + /** + * 记录操作日志 + * @param string $action 操作类型 + * @param array $data 操作数据 + * @param string $logFile 日志文件路径 + */ + protected function logOperation($action, $data = [], $logFile = 'data/operation_log.json') { + require_once 'FileManager.php'; + + // 加载现有日志 + $logData = FileManager::loadJsonFile($logFile, ['operations' => []]); + + // 添加新日志条目 + $logEntry = [ + 'timestamp' => date('Y-m-d H:i:s'), + 'action' => $action, + 'data' => $data, + 'ip' => $_SERVER['REMOTE_ADDR'] ?? 'unknown' + ]; + + array_unshift($logData['operations'], $logEntry); + + // 限制日志数量(保留最新的500条) + if (count($logData['operations']) > 500) { + $logData['operations'] = array_slice($logData['operations'], 0, 500); + } + + // 保存日志 + FileManager::saveJsonFile($logFile, $logData); + } + + /** + * 获取操作日志 + * @param int $limit 日志数量限制(默认20) + * @param string $logFile 日志文件路径 + * @return array 日志数据 + */ + protected function getOperationLog($limit = 20, $logFile = 'data/operation_log.json') { + require_once 'FileManager.php'; + + $logData = FileManager::loadJsonFile($logFile, ['operations' => []]); + $operations = $logData['operations'] ?? []; + + // 限制返回的日志数量 + if (count($operations) > $limit) { + $operations = array_slice($operations, 0, $limit); + } + + return ['success' => true, 'operations' => $operations]; + } +} +?> \ No newline at end of file diff --git a/utils/FileManager.php b/utils/FileManager.php new file mode 100644 index 0000000..474f4dd --- /dev/null +++ b/utils/FileManager.php @@ -0,0 +1,87 @@ + \ No newline at end of file diff --git a/项目说明文档.md b/项目说明文档.md new file mode 100644 index 0000000..3c173fe --- /dev/null +++ b/项目说明文档.md @@ -0,0 +1,353 @@ +# 基金监控系统项目说明文档 + +## 1. 项目概述 + +基金监控系统是一个实时监控基金净值、展示投资收益并支持定时邮件推送的Web应用。系统提供直观的基金数据展示、历史净值图表、基金配置管理和邮件提醒功能,帮助用户及时了解基金投资情况。 + +### 核心功能 +- 实时基金净值监控与收益计算 +- 基金分组管理(多渠道) +- 历史净值趋势图表展示 +- 定时基金状态邮件推送(工作日14:30) +- 访问统计与操作日志 +- 基金推荐管理 +- 响应式设计,支持深色主题 + +## 2. 技术栈 + +| 技术 | 版本/说明 | 用途 | +|------------|-------------------------|-----------------------------| +| PHP | 5.6+ | 服务器端脚本语言,处理业务逻辑与API请求 | +| JavaScript | ES6+ | 前端交互与数据处理 | +| HTML5 | - | 页面结构与内容展示 | +| CSS3 | - | 页面样式与响应式设计 | +| Chart.js | CDN引入 | 基金净值趋势图表绘制 | +| Font Awesome | CDN引入 | 图标资源 | +| JSON | - | 数据存储与API响应格式 | +| XAMPP | 推荐环境 | PHP开发与运行环境 | + +## 3. 项目结构 + +``` +├── index.php # 主页面 - 基金监控面板 +├── api.php # 核心API - 基金数据获取与邮件发送 +├── admin.php # 管理后台 - 基金配置与邮件设置 +├── login.php # 登录页面 - 管理后台登录验证 +├── recommend_fund.php # 基金推荐页面 - 用户提交基金推荐 +├── admin_api.php # 管理API - 后台数据接口 +├── script.js # 主页面JavaScript - 数据加载与交互 +├── admin.js # 管理后台JavaScript - 表单处理与交互 +├── styles.css # 主页面样式 +├── admin.css # 管理后台样式 +└── data/ # 数据存储目录 + ├── visits.json # 访问统计数据 + ├── stats.json # 统计信息 + ├── fund_config.json # 基金配置 + ├── fund_history.json # 基金历史数据 + ├── operation_log.json # 操作日志 + ├── fund_daily_data.json # 基金每日数据 + ├── email_config.json # 邮件配置 + ├── email_status.json # 邮件发送状态 + └── cache/ # 基金数据缓存目录 +``` + +## 4. 主要功能模块 + +### 4.1 基金监控面板(index.php) +- **实时基金数据展示**:显示当前净值、估算净值、涨跌幅等信息 +- **多渠道分组**:支持按渠道管理不同的基金组合 +- **收益计算**:自动计算投资收益与收益率 +- **自动刷新**:默认每10秒自动刷新数据 +- **统计面板**:显示访问统计与最近访问记录 +- **主题切换**:支持浅色/深色主题切换 + +### 4.2 管理后台(admin.php) +- **基金配置**:添加、编辑、删除基金配置 +- **推荐基金管理**:审核和管理用户推荐的基金 +- **操作日志**:查看系统操作历史记录 +- **净值图表**:查看基金历史净值趋势 +- **邮箱设置**:配置SMTP服务器和邮件接收人 + +### 4.3 基金推荐(recommend_fund.php) +- **用户基金推荐**:允许用户提交基金推荐 +- **IP限制**:每IP限制推荐数量 +- **数据验证**:确保基金代码有效性 + +### 4.4 邮件推送功能 +- **定时发送**:工作日14:30自动发送基金状态邮件 +- **自定义配置**:支持配置SMTP服务器、发件人、收件人 +- **邮件内容**:包含基金净值、涨跌幅、收益情况 + +## 5. API接口说明 + +### 5.1 核心API(api.php) + +| 接口名称 | 请求方法 | 参数 | 返回值 | 描述 | +|--------|--------|-----|-------|------| +| fund_data | GET | - | JSON | 获取实时基金数据与收益计算 | +| get_stats | GET | - | JSON | 获取访问统计数据 | +| get_fund_chart | GET | fund_code | JSON | 获取基金历史净值数据 | +| send_fund_email | GET | - | JSON | 手动触发基金邮件发送 | + +### 5.2 管理API(admin_api.php) + +| 接口名称 | 请求方法 | 参数 | 返回值 | 描述 | +|--------|--------|-----|-------|------| +| get_funds | GET | - | JSON | 获取基金配置数据 | +| save_funds | POST | funds | JSON | 保存基金配置 | +| get_recommended_funds | GET | - | JSON | 获取推荐基金列表 | +| approve_recommended_fund | GET | fund_code | JSON | 批准推荐基金 | +| delete_recommended_fund | GET | fund_code | JSON | 删除推荐基金 | +| get_email_config | GET | - | JSON | 获取邮箱配置 | +| save_email_config | POST | smtp配置 | JSON | 保存邮箱配置 | +| get_operation_log | GET | - | JSON | 获取操作日志 | + +## 6. 安装和配置 + +### 6.1 环境要求 +- PHP 5.6+(推荐7.0+) +- Web服务器(Apache/Nginx) +- 支持JSON扩展的PHP环境 +- 支持fsockopen函数(用于SMTP邮件发送) + +### 6.2 安装步骤 +1. 将项目文件部署到Web服务器根目录 +2. 确保`data/`目录可写 +3. 确保PHP环境已启用必要扩展(json, openssl等) +4. 访问`index.php`即可使用主页面 +5. 访问`admin.php`进入管理后台(默认密码:qiyu123123) + +### 6.3 配置文件 + +#### 基金配置(data/fund_config.json) +```json +[ + { + "channel": "0", + "fund_code": "003766", + "investment": 1000 + }, + { + "channel": "1", + "fund_code": "004206", + "investment": 1500 + } +] +``` + +#### 邮箱配置(data/email_config.json) +```json +{ + "smtp_server": "smtp.qq.com", + "smtp_port": 465, + "smtp_secure": "ssl", + "username": "your_email@qq.com", + "password": "your_password", + "from_email": "your_email@qq.com", + "from_name": "基金监控系统", + "to_emails": ["recipient1@example.com", "recipient2@example.com"] +} +``` + +## 7. 使用说明 + +### 7.1 主页面使用 +1. 访问`index.php`查看基金实时数据 +2. 点击"刷新"按钮手动刷新数据 +3. 点击"统计"按钮查看访问统计 +4. 点击"主题"按钮切换深色/浅色主题 +5. 点击基金卡片可查看详细信息 + +### 7.2 管理后台使用 +1. 访问`admin.php`并使用默认密码登录(qiyu123123) +2. **基金配置**: + - 点击"添加基金"添加新的基金配置 + - 编辑现有基金的代码和投资金额 + - 删除不需要的基金配置 +3. **推荐基金管理**: + - 审核用户提交的基金推荐 + - 删除不适合的推荐基金 +4. **邮箱设置**: + - 配置SMTP服务器信息 + - 添加邮件接收人 + - 保存配置并测试发送 + +### 7.3 定时邮件推送 +- 系统默认在工作日14:30自动发送基金状态邮件 +- 可通过`test_fund_email.php`手动测试邮件发送 +- 可在`api.php`中修改发送时间配置 + +## 8. 代码结构和核心类 + +### 8.1 核心类:FundMonitorAPI + +`FundMonitorAPI`类位于`api.php`中,是系统的核心处理类,负责基金数据获取、邮件发送、数据存储等功能。 + +**主要方法:** + +- `__construct()`:类初始化,创建必要的目录和配置文件 +- `loadEmailConfig()`:加载邮箱配置 +- `sendEmail()`:使用Socket直接连接SMTP服务器发送邮件 +- `shouldSendEmail()`:判断是否应该发送邮件(时间条件检查) +- `sendFundStatusEmail()`:发送基金状态邮件 +- `getFundData()`:获取基金实时数据 +- `getFundChartData()`:获取基金历史净值数据 +- `updateStats()`:更新访问统计 + +### 8.2 数据处理流程 + +1. 前端通过AJAX请求`api.php?action=fund_data`获取基金数据 +2. API类从外部数据源获取基金实时净值 +3. 计算基金收益与涨跌幅 +4. 缓存数据并返回JSON响应 +5. 前端渲染基金卡片和统计信息 +6. 定时任务触发邮件发送功能 + +## 9. 扩展和定制 + +### 9.1 添加新的基金数据源 +1. 在`api.php`中修改`getFundData()`方法 +2. 添加新的数据源处理逻辑 +3. 确保返回数据格式与现有格式一致 + +### 9.2 修改邮件发送时间 +在`api.php`中修改以下配置: + +```php +private $emailSchedule = [ + 'days' => [1, 2, 3, 4, 5], // 1-5代表周一到周五 + 'hour' => 14, // 小时 + 'minute' => 30 // 分钟 +]; +``` + +### 9.3 自定义基金分组(渠道) +在`script.js`和`admin.js`中修改渠道名称和图标配置: + +```javascript +function getChannelName(channel) { + const channelNames = { + '0': '渠道一', + '1': '渠道二', + '2': '渠道三' + // 添加新的渠道名称 + }; + return channelNames[channel] || `渠道${channel}`; +} +``` + +## 10. 故障排除 + +### 10.1 常见问题 + +**问题1:基金数据无法加载** +- 检查网络连接是否正常 +- 确认PHP环境支持curl或file_get_contents +- 查看浏览器控制台的错误信息 +- 检查`api.php`中的基金数据源是否可访问 + +**问题2:邮件发送失败** +- 检查SMTP服务器配置是否正确 +- 确认邮箱密码和授权码是否有效(注意:QQ邮箱需使用授权码而非登录密码) +- 检查服务器是否允许发送邮件(端口是否开放) +- 查看邮件发送日志(`data/email_status.json`) +- 确认收件人邮箱格式是否正确 + +**问题3:管理后台登录失败** +- 确认密码是否正确(默认:qiyu123123) +- 检查session功能是否正常 +- 清除浏览器缓存并重新登录 +- 检查`login.php`中的密码验证逻辑 + +**问题4:定时邮件不发送** +- 确认服务器时间和时区设置是否正确 +- 检查`test_fund_email.php`是否能正常发送邮件 +- 查看`data/email_status.json`文件的发送状态 +- 检查`api.php`中的时间配置是否正确 +- 确认定时任务是否正常运行(宝塔面板或服务器cron) + +### 10.2 日志文件 + +- **操作日志**:`data/operation_log.json` - 记录系统操作历史 +- **邮件发送状态**:`data/email_status.json` - 记录邮件发送情况 +- **访问统计**:`data/stats.json` - 记录网站访问数据 + +## 11. 注意事项 + +### 11.1 环境配置注意事项 + +- **PHP版本**:建议使用PHP 7.0+版本,确保兼容性和性能 +- **服务器权限**:确保`data/`目录具有可写权限(755或777) +- **时区设置**:在`php.ini`中设置正确的时区(如:`date.timezone = Asia/Shanghai`) +- **防火墙设置**:确保服务器允许访问外部基金数据源和SMTP服务器 + +### 11.2 宝塔面板定时任务注意事项 + +- **执行周期**:设置为每天执行,系统会在内部判断是否为工作日 +- **执行时间**:建议设置为14:29执行,系统会在14:30发送邮件 +- **命令格式**: + - URL方式:`curl -s http://yourdomain.com/test_fund_email.php` + - 命令行方式:`php /www/wwwroot/yourdomain.com/test_fund_email.php` +- **日志记录**:开启日志记录功能,便于排查问题 +- **执行用户**:确保执行用户具有文件读写权限 + +### 11.3 数据安全注意事项 + +- **定期备份**:定期备份`data/`目录下的所有配置文件 +- **密码安全**:登录管理后台后立即修改默认密码 +- **访问限制**:通过IP限制或宝塔面板的访问控制功能限制管理后台访问 +- **数据验证**:所有用户输入都应进行验证,防止恶意输入 + +### 11.4 性能优化注意事项 + +- **缓存机制**:系统已实现基金数据缓存,减少重复请求 +- **自动刷新**:默认每10秒自动刷新,可根据需要调整`script.js`中的`AUTO_REFRESH_INTERVAL`参数 +- **并发控制**:系统已实现请求防抖,避免并发请求导致的性能问题 +- **资源加载**:使用CDN加载第三方资源(Chart.js、Font Awesome),提高页面加载速度 + +## 11. 安全建议 + +1. **修改默认密码**:登录管理后台后立即修改默认密码 +2. **限制管理后台访问**:可通过IP限制或.htaccess限制admin.php的访问 +3. **定期备份数据**:定期备份`data/`目录下的所有配置文件 +4. **更新PHP版本**:使用最新稳定版PHP以获得更好的安全性 +5. **验证用户输入**:所有用户输入都应进行验证,防止XSS和SQL注入 + +## 12. 开发说明 + +### 12.1 调试模式 +在开发过程中,可在`api.php`中添加调试日志: + +```php +function logDebug($message) { + file_put_contents('debug.log', date('Y-m-d H:i:s') . ' - ' . $message . "\n", FILE_APPEND); +} +``` + +### 12.2 性能优化 + +- 基金数据缓存:使用`data/cache/`目录缓存基金数据,减少重复请求 +- 定时器防抖:避免并发请求导致的性能问题 +- 延迟加载:图表和统计数据可采用延迟加载策略 + +## 13. 版本历史 + +| 版本 | 日期 | 更新内容 | +|-----|-----|--------| +| 1.0 | 2025-01-15 | 初始版本发布 | +| 1.1 | 2025-02-20 | 添加邮件推送功能 | +| 1.2 | 2025-03-10 | 优化基金数据缓存机制 | +| 1.3 | 2025-04-05 | 添加深色主题支持 | + +## 14. 联系方式 + +如有问题或建议,欢迎联系开发者。 + +--- + +**文档更新日期**:2025-04-10 +**文档版本**:1.0 + +--- + +> 本项目仅用于学习和个人使用,请勿用于商业用途。基金投资有风险,入市需谨慎。 \ No newline at end of file