Test.php 959 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\controller\Api;
  4. use app\common\service\ZopOrderService;
  5. /**
  6. * 测试接口
  7. */
  8. class Test extends Api
  9. {
  10. protected $noNeedLogin = ['*'];
  11. protected $noNeedRight = ['*'];
  12. /**
  13. * 测试方法
  14. *
  15. * @return void
  16. */
  17. public function index()
  18. {
  19. common_log('aaa');
  20. $data = array("key1", "key2", "key3", "key4", "key5", "key6", "key7", "key8", "key9", "key10", "key11", "key12", "key13", "key14", "key15", "key16");
  21. dd(array_chunk($data, 5), array_column(array_chunk($data, 5), 0));
  22. $params = [
  23. 'channel' => '08-2278-ae1q-9999',
  24. 'goodsId' => '982012220836',
  25. 'resourceContents' => [
  26. [
  27. 'content' => 'aaa',
  28. 'sort' => 1
  29. ]
  30. ]
  31. ];
  32. $result = ZopOrderService::resourceUpload($params);
  33. dd($result);
  34. }
  35. }