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.
 
 

33 lines
750 B

<?php
namespace App\Service\v3\Implementations;
use App\Model\v3\OrderMain;
use Hyperf\Di\Annotation\Inject;
use App\Service\v3\Interfaces\OrderOnlineServiceInterface;
class OrderOnlineService implements OrderOnlineServiceInterface
{
public function do($params){
return [];
}
public function check()
{
// TODO: Implement check() method.
}
public function undo()
{
// TODO: Implement undo() method.
}
public function detailByUser($orderMainId, $userId)
{
return OrderMain::query()
->where(['id' => $orderMainId])
->with(['orders' => function($query) {
return $query->with(['orderGoods']);
}])
->first()->toArray();
}
}