test(api): 测试产品接口

- 在 wps_product 方法中添加了测试代码,直接返回接收到的数据
- 用于验证接口是否正确接收到产品信息
This commit is contained in:
mkm 2024-11-29 20:12:42 +08:00
parent 834532a24d
commit adfc293568

View File

@ -285,6 +285,8 @@ class IndexController extends BaseApiController
public function wps_product()
{
$data = $this->request->post();
return $this->success('ok',$data);
if ($data) {
$data=json_decode($data,true);
if ($data['product_id'] > 0) {