1.测试环境下载二维码

This commit is contained in:
xucong 2024-10-10 15:04:00 +08:00
parent 896e4aed26
commit 36832b551a
2 changed files with 9 additions and 2 deletions

@ -232,7 +232,10 @@ class LocalStoreLogic extends Logic
return false;
}
$user_local_msg = LocalStore::where("user_id",$user_id)->where("store_state",1)->find();
$user_local_msg = LocalStore::where("user_id",$user_id)
->where("lstore_id",$lstore_id)
->where("store_state",1)
->find();
// if ($user_local_msg != null) {
// if ($user_local_msg['pay_image'] != null) {
// $data['pay_image'] = $user_local_msg['pay_image'];

@ -181,7 +181,11 @@ class LocalStore extends Api
if ($user_msg == null) {
return JsonServer::error('暂无用户');
}
$user_local_msg = Db::name("local_store")->where("user_id", $user_id)->where("store_state", 1)->find();
$user_local_msg = Db::name("local_store")
->where("user_id", $user_id)
->where("lstore_id",$lstore_id)
->where("store_state", 1)
->find();
if ($user_local_msg != null) {
if ($user_local_msg['pay_image'] != null) {
$data['pay_image'] = $user_local_msg['pay_image'];