| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * 1.1 商户进件 -> 照片补充
- * 接口:/api/v3/tkbs/open_merchant_img_sup
- * 请求加密:无 返回解密:无
- */
- $config = require __DIR__ . '/bootstrap.php';
- $api = new \Lakala\OpenAPISDK\V3\Api\LakalaApi($config, \Lakala\OpenAPISDK\V3\Api\EncryptMode::NONE);
- $request = new \Lakala\OpenAPISDK\V3\Model\ModelRequest();
- $request->setReqData([
- 'merchant_no' => '822191070110011',
- 'org_code' => JINGJIAN_ORG_CODE,
- 'attachments' => [
- [
- 'img_path' => 'merchant/null/20230616093253148380SHOP_OUTSIDE_IMG.jpg',
- 'img_type' => 'SHOP_OUTSIDE_IMG',
- 'openplatform_id' => '',
- ],
- [
- 'img_path' => 'merchant/null/20230616093253148380SHOP_INSIDE_IMG.jpg',
- 'img_type' => 'SHOP_INSIDE_IMG',
- 'openplatform_id' => '',
- ],
- ],
- ]);
- try {
- $response = $api->tradeApi('/api/v3/tkbs/open_merchant_img_sup', $request);
- print_r($response->getRespData());
- echo $response->getCode();
- print_r($response->getHeaders());
- echo $response->getOriginalText();
- } catch (\Lakala\OpenAPISDK\V3\ApiException $e) {
- echo $e->getMessage();
- }
|