You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
332 B
19 lines
332 B
<?php
|
|
|
|
namespace App\Http\Controllers\Api;
|
|
|
|
use App\Models\Product;
|
|
|
|
/**
|
|
* 仅用于测试
|
|
* Class TController
|
|
* @package App\Http\Controllers\Api
|
|
*/
|
|
class TestController
|
|
{
|
|
public function index()
|
|
{
|
|
//test
|
|
return Product::query()->whereIn('id', explode(',', '1,2,3,4,5,6'))->get(['id AS product_id', 'supplier_id']);
|
|
}
|
|
}
|