2026.2.9 Black Exchange Source Code Update Log
1. Optimize CDN to make the website load faster.
https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js and https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/5.15.2/css/all.min.css and https://lib.sinaapp.com/js/bootstrap/4.2.1/css/bootstrap.min.css
2. Fix bug – always showing: “Invalid contract time”
3. Remove invitation code as per customer request
4. Optimize online customer service message sending function.
5. Develop new UI download page and landing page, more official
#Secondary Development #Update Log #Technical Update
Share batch replacement tutorial:
Baota Panel Batch Replace CDN Link Method
Method 1: Use Baota Panel File Manager (Simple)
1. Log in to Baota panel
2. Go to File Manager → Find website directory
3. Use search function in top right corner
4. Search for cdn.staticfile.org/jquery/2.1.1
5. Find files containing these links
6. Manually edit files, replace one by one
⚠️ Disadvantage: Can be troublesome if there are many files
Method 2: Use SSH Command for Batch Replacement (Recommended)
1. SSH connect to server
“`bash
# Enter website root directory (replace with your actual path)
cd /www/wwwroot/your_website_directory
“`
2. Backup website (Important!)
“`bash
# Backup entire website directory
tar -czf website_backup_$(date +%Y%m%d).tar.gz .
“`
3. Batch replacement command
“`bash
# Replace jQuery CDN
find . -type f ( -name “*.html” -o -name “*.php” -o -name “*.js” ) -exec sed -i ‘s| https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js|https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js|g ‘ {} +
# Replace Font Awesome CDN
find . -type f ( -name “*.html” -o -name “*.php” -o -name “*.css” ) -exec sed -i ‘s| https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/5.15.2/css/all.min.css|https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css|g ‘ {} +
# Replace Bootstrap CDN
find . -type f ( -name “*.html” -o -name “*.php” -o -name “*.css” ) -exec sed -i ‘s| https://lib.sinaapp.com/js/bootstrap/4.2.1/css/bootstrap.min.css|https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css|g ‘ {} +
“`
4. Verify replacement results
“`bash
# Check if old links still exist
grep -r ” cdn.staticfile.org/jquery/2.1.1 ” .
grep -r ” lf3-cdn-tos.bytecdntp.com ” .
grep -r ” lib.sinaapp.com/js/bootstrap ” .
“`
Method 3: One-Click Replacement Script
Create a replacement script:
“`bash
# Create script file
nano replace_cdn.sh
“`
Copy the following content:
“`bash
#!/bin/bash
# Website directory path (please modify to your actual path)
SITE_DIR=”/www/wwwroot/your_website_directory”
# Enter website directory
cd “$SITE_DIR” || exit
# Backup
echo “Backing up website…”
tar -czf “../website_backup_$(date +%Y%m%d_%H%M%S).tar.gz” .
echo “Backup complete!”
# Replace jQuery
echo “Replacing jQuery CDN…”
find . -type f ( -name “*.html” -o -name “*.php” -o -name “*.js” ) -exec sed -i ‘s| https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js|https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js|g ‘ {} +
# Replace Font Awesome
echo “Replacing Font Awesome CDN…”
find . -type f ( -name “*.html” -o -name “*.php” -o -name “*.css” ) -exec sed -i ‘s| https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/5.15.2/css/all.min.css|https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css|g ‘ {} +
# Replace Bootstrap
echo “Replacing Bootstrap CDN…”
find . -type f ( -name “*.html” -o -name “*.php” -o -name “*.css” ) -exec sed -i ‘s| https://lib.sinaapp.com/js/bootstrap/4.2.1/css/bootstrap.min.css|https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css|g ‘ {} +
echo “Replacement complete!”
echo “Verifying results…”
# Check if old links still exist
echo “— Checking old jQuery links —“
grep -r ” cdn.staticfile.org/jquery/2.1.1 ” . | head -5
echo “— Checking old Font Awesome links —“
grep -r ” lf3-cdn-tos.bytecdntp.com ” . | head -5
echo “— Checking old Bootstrap links —“
grep -r ” lib.sinaapp.com/js/bootstrap ” . | head -5
echo “If there is no output above, replacement is successful!”
“`
Execute the script:
“`bash
# Give execute permission
chmod +x replace_cdn.sh
# Execute script
./replace_cdn.sh
“`
Method 4: Use Baota Terminal (Simplest)
1. Open Baota panel → Terminal
2. Directly paste the replacement commands above to execute
Precautions
⚠️ Important reminders:
– Always backup website files first
– Test in staging environment first
– Check if website functions normally after replacement
– Clear cache if website has cache
– Execution time may be longer if there are many files
New CDN links after replacement
jQuery: https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
Font Awesome: https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css
Bootstrap: https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css
-
Alipay QR Code Scan
-
WeChat Scan Pay