init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)

这个提交包含在:
Developer
2026-10-30 10:18:50 +08:00
当前提交 1f3e0ce2f6
共有 9291 个文件被更改,包括 1776674 次插入 和 0 次删除

26
ThinkPHP/Library/Vendor/Alidayus/fileTest.php vendored 可执行文件
查看文件

@@ -0,0 +1,26 @@
<?php
include "TopSdk.php";
date_default_timezone_set('Asia/Shanghai');
$c = new TopClient;
$c->appkey = '12497914';
$c->secretKey = '4b0f28396e072d67fae169684613bcd1';
// $req = new TradeVoucherUploadRequest;
// $req->setFileName("example");
// $req->setFileData("@/Users/xt/Downloads/1.jpg");
// $req->setSellerNick("奥利奥官方旗舰店");
// $req->setBuyerNick("101NufynDYcbjf2cFQDd62j8M/mjtyz6RoxQ2OL1c0e/Bc=");
// var_dump($c->execute($req));
$req2 = new TradeVoucherUploadRequest;
$req2->setFileName("example");
$myPic = array(
'type' => 'application/octet-stream',
'content' => file_get_contents('/Users/xt/Downloads/1.jpg')
);
$req2->setFileData($myPic);
$req2->setSellerNick("奥利奥官方旗舰店");
$req2->setBuyerNick("101NufynDYcbjf2cFQDd62j8M/mjtyz6RoxQ2OL1c0e/Bc=");
var_dump($c->execute($req2));
?>