|
@@ -18,6 +18,38 @@ class Index extends Controller
|
|
|
$this->response()->write(file_get_contents($file));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ * 3.5 商品上下架状态接口
|
|
|
+ *
|
|
|
+ * @param $skuArr
|
|
|
+ *
|
|
|
+ * @return array|bool
|
|
|
+ */
|
|
|
+ public function skuState()
|
|
|
+ {
|
|
|
+
|
|
|
+ $data = $this->request()->getRequestParam();
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ $skuArr = $data['skuArr'];
|
|
|
+
|
|
|
+
|
|
|
+ $this->JdSdk = new JdSdk();
|
|
|
+
|
|
|
+ $response = $this->JdSdk->api_product_sku_state($skuArr);
|
|
|
+ print_r($response);
|
|
|
+ $this->response()->write($response . PHP_EOL);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
function test()
|
|
|
{
|
|
|
$this->response()->write('this is test');
|