---
# System prepended metadata

title: 企劃型批量導入
tags: [女神, ' 工具', ' 開發', ' 測試']

---

---
tags: 女神, 開發, 測試, 工具
---

# 企劃型批量導入

```bash
cd /data/center/

# 自製腳本 matt_import.sh 帶入 區服id 跟 導入數量 (1~5)
# ./matt_import.sh server_id num
./matt_import.sh 21601 5
```
**將 player_role_data_28000335.json 裡的 MDA2MDAzMl9tZWxsZWFu 替換成需要的ID名稱**
*[base64轉換參考](https://www.base64decode.org/)*
:::info
* decode base64 MDA2MDAzMl9tZWxsZWFu = 0060032_mellean
* 企劃服需要用 0060015_ 做前墜才能直接用id登入
:::

:::spoiler

**腳本內容**

```bash=
#!/bin/sh

# ./matt_import.sh server_id num
# ./matt_import.sh 21601 5

php Public/client.php copyPlayer/import_player_once/server_id/$1/file_name/player_role_data_28000335_0.json
echo -e "\n from server_id = $1 with matt000"

for i in `seq $2`
do
    php Public/client.php copyPlayer/import_player_once/server_id/$1/file_name/player_role_data_28000335_$i.json
    echo -e "\n from server_id = $1 with matt00$i"
done

echo "批量導入完成"
```
:::

{%hackmd BJrTq20hE %}