1.修改了本地生活支付

2.修改了查询商品分类问题
This commit is contained in:
xucong 2024-09-03 22:42:20 +08:00
parent 307ed1bc57
commit a11d593025
2 changed files with 13 additions and 5 deletions

@ -112,11 +112,19 @@ class Pay extends Api
return $result;
}
public function localPay()
public function localPay()
{
$user_id = $this->user_id;
$post = $this->request->post();
$result = PayLogic::localWxPay($user_id,$post, $this->client);
$user_id = $this->user_id;
if(!isset($user_id)){
$user_id = $post['user_id'];
}
if(isset($this->client)){
$client = $this->client;
}else{
$client = 1;
}
$result = PayLogic::localWxPay($user_id,$post, $client);
return $result;
}

@ -394,8 +394,8 @@ class GoodsLogic extends Logic
if($category_msg['pid'] == 0){
$wh = "find_in_set(".$get['platform_cate_id'].", first_cate_id)";
}else{
$category_second_msg = GoodsCategory::where("pid",$category_msg['id'])->select();
if(count($category_second_msg)>0){
$category_second_msg = GoodsCategory::where("pid",$category_msg['id'])->find();
if($category_second_msg==null){
$wh = "find_in_set(".$get['platform_cate_id'].", second_cate_id)";
}else{
$wh = "find_in_set(".$get['platform_cate_id'].", third_cate_id)";