💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ public function encrypt() { $key = "1111111111"; $iv = "1111111111"; $data = [ 'source' => 'source23', 'applyName' => '', 'phone' => 13605573443, 'age' => 22, 'amount' => '4.00', 'loanPeriod' => '3', 'cityId' => '450800', 'income' => 3000, // ........ ]; $str = json_encode($data, true); $encryptResult = openssl_encrypt($str, 'aes-128-cbc', $key, true, $iv); // $encryptResult = base64_encode($encryptResult); // base64 'msg' => '', return $encryptResult; } ~~~