'测试 - yansongda - 1', 'out_trade_no' => time().'', 'payer' => [ 'auth_code' => 'xxxxxxxxxxx' ], 'amount' => [ 'total' => 1, ], 'scene_info' => [ 'store_info'=>[ 'id' => '5678' ] ], ]; $result = Pay::wechat()->pos($order); return json(['msg' =>create_password(123456, '11d3')]); } /** * @notes 下载文件 */ public function download() { $params = (new GenerateTableValidate())->goCheck('download'); $result = GeneratorLogic::download($params['file']); if (false === $result) { return $this->fail(GeneratorLogic::getError() ?: '下载失败'); } return response()->download($result, 'webman-curd.zip'); } }