1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use app\common\service\ZopOrderService;
- /**
- * 测试接口
- */
- class Test extends Api
- {
- protected $noNeedLogin = ['*'];
- protected $noNeedRight = ['*'];
- /**
- * 测试方法
- *
- * @return void
- */
- public function index()
- {
- common_log('aaa');
- $data = array("key1", "key2", "key3", "key4", "key5", "key6", "key7", "key8", "key9", "key10", "key11", "key12", "key13", "key14", "key15", "key16");
- dd(array_chunk($data, 5), array_column(array_chunk($data, 5), 0));
- $params = [
- 'channel' => '08-2278-ae1q-9999',
- 'goodsId' => '982012220836',
- 'resourceContents' => [
- [
- 'content' => 'aaa',
- 'sort' => 1
- ]
- ]
- ];
- $result = ZopOrderService::resourceUpload($params);
- dd($result);
- }
- }
|