Commit a7f32a2d by 杨树贤

价格问题

parent d5563313
Showing with 3 additions and 3 deletions
......@@ -3,14 +3,14 @@
namespace App\Http\Services;
//价格相关服务
class PriceService
class PriceService
{
//获取最小阶梯的价格
//获取最小阶梯的价格
public function getMoqPrice($price)
{
$price = is_array($price) ? $price : json_decode($price, true);
if (count($price) >=1){
return $price[0];
return current($price);
}
return [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment