Mike 7 سال پیش
والد
کامیت
d5bfb23063
2فایلهای تغییر یافته به همراه3 افزوده شده و 4 حذف شده
  1. 3 3
      server/app/Http/Controllers/Api/V1/PayController.php
  2. 0 1
      server/app/Models/AccountLog.php

+ 3 - 3
server/app/Http/Controllers/Api/V1/PayController.php

xqd
@@ -166,10 +166,10 @@ class PayController extends Controller
                     $order->save();
 
                     //记日志
-                    $_ops = AccountLog::getAllop();
-                    $this->logAccount($_ops[AccountLog::TYPE_CASH], $u->id, $u->name,$order->amount,
+                    $_types = AccountLog::getAllType();
+                    $this->logAccount($_types[AccountLog::TYPE_CASH], $u->id, $u->name,$order->amount,
                         AccountLog::OP_CHARGE,
-                        $_ops[AccountLog::TYPE_COIN], $u->id,$u->name,$order->price,$out_trade_no,$u->avatar);
+                        $_types[AccountLog::TYPE_COIN], $u->id,$u->name,$order->price,$out_trade_no,$u->avatar);
 
                     \Log::info('支付完成');
 

+ 0 - 1
server/app/Models/AccountLog.php

xqd
@@ -47,7 +47,6 @@ class AccountLog extends Model
 
     //交易行为枚举
     private static $_op = [
-        self::OP_CHARGE         => '其它',
         self::OP_CHARGE         => '充值',
         self::OP_SUPPORT        => '支持梦想',
         self::OP_WITHDRAW       => '提现',