未传金额返回商户

This commit is contained in:
liu 2024-03-18 16:05:07 +08:00
parent 4547634f0e
commit d5d6b6d038

View File

@ -315,9 +315,18 @@ class StoreOrder extends BaseController
//商户id 金额 //商户id 金额
$merId = $this->request->param('mer_id'); $merId = $this->request->param('mer_id');
$money = $this->request->param('money'); $money = $this->request->param('money');
if(empty($money) || empty($merId)){
if(empty($merId)){
return app('json')->fail('参数缺失'); return app('json')->fail('参数缺失');
} }
if(empty($money)){
//初始化
return app('json')->success($this->repository->beginMerchant($merId));
}
$where = [ $where = [
"a.mer_id" => $merId, "a.mer_id" => $merId,
"p.is_show" => 1, "p.is_show" => 1,