微调
This commit is contained in:
@@ -97,7 +97,7 @@ class IndexController extends AdminController
|
|||||||
|
|
||||||
$grid->column('门店号')->display(function () {
|
$grid->column('门店号')->display(function () {
|
||||||
return $this->shop_id ?? '---';
|
return $this->shop_id ?? '---';
|
||||||
});
|
})->help('银联pos机配置的门店号');
|
||||||
|
|
||||||
$grid->column('所属项目')->display(function () {
|
$grid->column('所属项目')->display(function () {
|
||||||
return $this->type_text;
|
return $this->type_text;
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ class Coupon extends Model
|
|||||||
public function profit()
|
public function profit()
|
||||||
{
|
{
|
||||||
$log = AccountLog::where('source->coupon_id', $this->id)->first();
|
$log = AccountLog::where('source->coupon_id', $this->id)->first();
|
||||||
if (!$log && $this->user) {
|
if (!$log && $this->user && $this->profit) {
|
||||||
return $this->user->account->rule('freeze', $this->profit, false, [
|
return $this->user->account->rule('freeze', $this->profit, false, [
|
||||||
'coupon_id' => $this->id,
|
'coupon_id' => $this->id,
|
||||||
'redemptionCode' => $this->redemptionCode,
|
'redemptionCode' => $this->redemptionCode,
|
||||||
|
|||||||
Reference in New Issue
Block a user