2026.2.14 Black Exchange Source Code Update Log

1. Fixed the issue where the principal of mining machines was not returned.

2. Added a script for orders that were not previously returned.

Integration of Mining Machine Principal Return Logic:

In the autokjsy (dedicated mining machine) and authsharesjsy (shared mining machine) methods, when the mining machine’s operation count synum reaches zero, code for automatically returning the principal has been added.

The principal return uses M() -> startTrans() transaction processing to ensure the safety of fund operations.

The return records will be written to the bill table, with type defined as 19, and the order ID included in the remarks.

Added Compensation Settlement Script:

The compensate_kj_principal method has been added at the end of the class.

This script will automatically scan all mining machine orders with status 3 (ended) and without principal return records in the bill, and issue the principal compensation.

Permission Update:

Added compensate_kj_principal to the $allow_action array in the _initialize method, allowing external access to this compensation settlement interface.

How to Execute Compensation Settlement:

Please directly access the following address in your browser (please replace yourdomain.com with your actual domain name):

http://yourdomain.com/Home/Autoexe/compensate_kj_principal

After execution, the page will display each successfully compensated order ID, currency, and amount, as well as the final summary statistics.

#Custom Development #Update Log #Technical Update