<?php namespace App\Http\Services; //价格相关服务
class PriceService
{
//获取最小阶梯的价格
public function getMoqPrice($price) { $price = is_array($price) ? $price : json_decode($price, true); if (count($price) >=1){
return current($price);
} return []; } }