2026.2.14 Black Exchange Source Code Changelog

1. Fixed the issue where mining machine principal was not being returned.

2. Added a script to compensate for unreimbursed principal from previous orders.

Integrated mining machine principal return logic:
In the autokjsy (sole mining machine) and authsharesjsy (shared mining machine) methods, when the mining machine’s operation count synum reaches zero, code for automatic principal return has been added.
The principal return uses M()->startTrans() transaction handling, ensuring the security of fund operations.
Return records will be written to the bill table, with type defined as 19, and the remarks field containing the order ID.

Added compensation script:
The compensate_kj_principal method has been added at the end of the class.
This script automatically scans all mining machine orders with status 3 (ended) that have no return records in the bills, and compensates the principal.

Permission update:
compensate_kj_principal was added to the $allow_action array in the _initialize method, allowing external access to this compensation interface.

How to run the compensation:
Please directly access the following URL in your browser (replace yourdomain.com with your actual domain):
http://yourdomain.com/Home/Autoexe/compensate_kj_principal
After execution, the page will display each compensated order ID, currency, and amount, along with the final summary statistics.

#二开 #更新日志 #技术更新