{"size": 632, "ext": "js", "max_stars_repo_path": "src/util/rsa.js", "max_stars_repo_name": "rex-zsd/learnredux", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/util/rsa.js", "max_issues_repo_name": "rex-zsd/learnredux", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/util/rsa.js", "max_forks_repo_name": "rex-zsd/learnredux", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.3870967742, "max_line_length": 53, "alphanum_fraction": 0.5458860759}
import {
    encrypt,
    decrypt
} from './encrypt';

const data = {
    "Yb_Assistant_Client": 3,
    cid: '748f1a2620029bee13e03c026174d4f0',
    deviceId: '804C9FCB-1C3E-479E-A7BD-E49C00591516',
    password: encrypt('123456'),
    phone: encrypt('15757129739')
}

let param = '';

for (let i in data) {
    if (!param.length)
        param += '?' + i + '=' + data[i];
    else
        param += '&' + i + '=' + data[i];
}

fetch('assistant/security/user/login' + param, {
        method: 'post'
    })
    .then(res => res.json())
    .then(res => {
        const data = JSON.parse(res.data);
        console.log(data);
    });
