|
@@ -257,7 +257,18 @@ class OrderService implements OrderServiceInterface
|
|
if (empty($order)) {
|
|
if (empty($order)) {
|
|
return Result::error("没有信息数据");
|
|
return Result::error("没有信息数据");
|
|
}
|
|
}
|
|
|
|
+ if (empty($order['price'])) {
|
|
|
|
+ return Result::error("价格字段错误");
|
|
|
|
+ }
|
|
|
|
+ if (empty($data['sttime'])) {
|
|
|
|
+ return Result::error("开始时间错误");
|
|
|
|
+ }
|
|
|
|
+ if (empty($data['edtime'])) {
|
|
|
|
+ return Result::error("结束时间错误");
|
|
|
|
+ }
|
|
$order->price = $data['price'];
|
|
$order->price = $data['price'];
|
|
|
|
+ $order->sttime = $data['sttime'];
|
|
|
|
+ $order->edtime = $data['edtime'];
|
|
$order->save();
|
|
$order->save();
|
|
return Result::success($order);
|
|
return Result::success($order);
|
|
}
|
|
}
|
|
@@ -958,14 +969,14 @@ class OrderService implements OrderServiceInterface
|
|
/**
|
|
/**
|
|
* 获取广告位的尺寸
|
|
* 获取广告位的尺寸
|
|
*
|
|
*
|
|
- *
|
|
|
|
|
|
+ *
|
|
*/
|
|
*/
|
|
public function getAdSize(): array
|
|
public function getAdSize(): array
|
|
{
|
|
{
|
|
$result = AdSize::get()->all();
|
|
$result = AdSize::get()->all();
|
|
if (empty($result)) {
|
|
if (empty($result)) {
|
|
- return Result::error("暂无数据");
|
|
|
|
|
|
+ return Result::error("暂无数据");
|
|
}
|
|
}
|
|
- return Result::success($result);
|
|
|
|
|
|
+ return Result::success($result);
|
|
}
|
|
}
|
|
}
|
|
}
|