预防一手
This commit is contained in:
parent
a59aa60d55
commit
f39930c12e
@ -314,7 +314,11 @@ class CashDraws extends Base{
|
|||||||
// $user->save();
|
// $user->save();
|
||||||
|
|
||||||
$targetId = $user->userId;
|
$targetId = $user->userId;
|
||||||
$displayName = $user['userName'];
|
if (isset($user['userName'])) $displayName = $user['userName'];
|
||||||
|
else {
|
||||||
|
\think\Log::write("CASH_DRAW_USERNAME_ISNOT_SET");
|
||||||
|
$displayName = $cash->targetId;
|
||||||
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
|
|
||||||
@ -327,7 +331,11 @@ class CashDraws extends Base{
|
|||||||
// $shop->save();
|
// $shop->save();
|
||||||
|
|
||||||
$targetId = $shop->userId;
|
$targetId = $shop->userId;
|
||||||
$displayName = $shop['userName'];
|
if (isset($shop['userName'])) $displayName = $shop['userName'];
|
||||||
|
else {
|
||||||
|
\think\Log::write("CASH_DRAW_SHOP_USERNAME_ISNOT_SET");
|
||||||
|
$displayName = $cash->targetId;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user