diff --git a/api/ClipboardContentParse.php b/api/ClipboardContentParse.php new file mode 100644 index 0000000000000000000000000000000000000000..149621de00ead52070642be30babf2908e12ef72 --- /dev/null +++ b/api/ClipboardContentParse.php @@ -0,0 +1,73 @@ +content) { + return ['content不能为空!', false]; + } + return ['', true]; + } +} \ No newline at end of file diff --git a/api/DtkClient.php b/api/DtkClient.php index f812296745a7b7432773432f0523b270e234c299..2abd8f09aa71ac7e8c148fe7bf724c05571c43a4 100644 --- a/api/DtkClient.php +++ b/api/DtkClient.php @@ -158,7 +158,8 @@ class DtkClient //curl_setopt ($ch, CURLOPT_SSL_VERIFYPEER, 0); //curl_setopt ($ch, CURLOPT_SSL_VERIFYHOST, 0); $header = [ - 'Content-Type: application/json' + 'Content-Type: application/json', + 'Client-Sdk-Type: php', ]; curl_setopt($ch, CURLOPT_HTTPHEADER, $header); curl_setopt($ch, CURLOPT_POST, true); diff --git a/api/GetPddProductDetails.php b/api/GetPddProductDetails.php new file mode 100644 index 0000000000000000000000000000000000000000..cff48c21e45d33c118864d9352feb28ec82d7210 --- /dev/null +++ b/api/GetPddProductDetails.php @@ -0,0 +1,59 @@ +goodsSign) { + return ['goodsSign不能为空!', false]; + } + return ['', true]; + } +} \ No newline at end of file diff --git a/vendor/composer/autoload_classmap.php b/vendor/composer/autoload_classmap.php index 65d809bd9c0f709f42fb8ca030aaac12f0c19a65..720f2912de488f94671c446091b7beb9793873b1 100644 --- a/vendor/composer/autoload_classmap.php +++ b/vendor/composer/autoload_classmap.php @@ -81,4 +81,6 @@ return array( 'GetTopicGoodsList' => $baseDir . '/api/GetTopicGoodsList.php', 'GetTurnLink' => $baseDir . '/api/GetTurnLink.php', 'GetTwdToTwd' => $baseDir . '/api/GetTwdToTwd.php', + 'GetPddProductDetails' => $baseDir . '/api/GetPddProductDetails.php', + 'ClipboardContentParse' => $baseDir . '/api/ClipboardContentParse.php', ); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index 50f6725f17c959ffa2df6b5d4d9846b9ea84f449..56a77e3ed05d9aa8595f1020e9920e1d4832a40a 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -82,6 +82,8 @@ class ComposerStaticInit5440ba73c44cba43cd74d7e60c8f1e2d 'GetTopicGoodsList' => __DIR__ . '/../..' . '/api/GetTopicGoodsList.php', 'GetTurnLink' => __DIR__ . '/../..' . '/api/GetTurnLink.php', 'GetTwdToTwd' => __DIR__ . '/../..' . '/api/GetTwdToTwd.php', + 'GetPddProductDetails' => __DIR__ . '/../..' . '/api/GetPddProductDetails.php', + 'ClipboardContentParse' => __DIR__ . '/../..' . '/api/ClipboardContentParse.php', ); public static function getInitializer(ClassLoader $loader)