Update README.md and cursor_linux_id_modifier.sh for improved user guidance and script functionality

- Enhanced README.md by updating WeChat contact information and adding a WeChat appreciation code section for better user engagement.
- Increased image sizes for better visibility in the README.
- Refined the sed command syntax in cursor_linux_id_modifier.sh for improved readability and consistency in modifying telemetry IDs.
- Ensured overall clarity and usability improvements across both the documentation and script.
This commit is contained in:
煎饼果子卷鲨鱼辣椒 2025-01-10 17:28:55 +08:00
parent 479aecdc78
commit 99c8e55475
3 changed files with 13 additions and 8 deletions

View File

@ -195,19 +195,24 @@ You've reached your trial request limit.
<tr>
<td align="center">
<b>个人微信</b><br>
<img src="img/wx_me.png" width="150" alt="作者微信"><br>
<b>JavaRookie666</b>
<img src="img/wx_me.png" width="250" alt="作者微信"><br>
<b>微信:JavaRookie666</b>
</td>
<td align="center">
<b>微信交流群</b><br>
<img src="img/wx_group.png" width="150" alt="微信群二维码"><br>
<small>7天内(1月15日前)有效</small>
<img src="img/wx_group.png" width="250" alt="微信群二维码"><br>
<small>7天内(1月15日前)有效,群满可以加公众号关注最新动态</small>
</td>
<td align="center">
<b>公众号</b><br>
<img src="img/wx_public_2.png" width="250" alt="微信公众号"><br>
<small>获取更多AI开发资源</small>
</td>
<td align="center">
<b>微信赞赏码</b><br>
<img src="img/wx_zsm.jpg" width="250" alt="微信赞赏码"><br>
<small>要到饭咧?啊咧?啊咧?不给也没事~ 请随意打赏</small>
</td>
</tr>
</table>
</div>

BIN
img/wx_zsm.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

@ -179,10 +179,10 @@ generate_new_config() {
if [ -f "$STORAGE_FILE" ]; then
# 直接修改现有文件
sed -i -e "s/\"telemetry\.machineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.machineId\": \"$machine_id\"/" "$STORAGE_FILE"
sed -i -e "s/\"telemetry\.macMachineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.macMachineId\": \"$mac_machine_id\"/" "$STORAGE_FILE"
sed -i -e "s/\"telemetry\.devDeviceId\":[[:space:]]*\"[^\"]*\"/\"telemetry.devDeviceId\": \"$device_id\"/" "$STORAGE_FILE"
sed -i -e "s/\"telemetry\.sqmId\":[[:space:]]*\"[^\"]*\"/\"telemetry.sqmId\": \"$sqm_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.machineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.machineId\": \"$machine_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.macMachineId\":[[:space:]]*\"[^\"]*\"/\"telemetry.macMachineId\": \"$mac_machine_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.devDeviceId\":[[:space:]]*\"[^\"]*\"/\"telemetry.devDeviceId\": \"$device_id\"/" "$STORAGE_FILE"
sed -i "s/\"telemetry\.sqmId\":[[:space:]]*\"[^\"]*\"/\"telemetry.sqmId\": \"$sqm_id\"/" "$STORAGE_FILE"
else
# 创建新文件
cat > "$STORAGE_FILE" << EOF