فهرست منبع

佣金转入余额报错

吴昊天 2 سال پیش
والد
کامیت
6a4693fdee
2فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  1. 4 4
      crmeb/app/adminapi/controller/Common.php
  2. 1 1
      crmeb/app/api/controller/v1/user/UserRechargeController.php

+ 4 - 4
crmeb/app/adminapi/controller/Common.php

@@ -235,28 +235,28 @@ class Common extends AuthController
         if ($data['ordernum'] != 0) {
         if ($data['ordernum'] != 0) {
             $value[] = [
             $value[] = [
                 'title' => "您有$data[ordernum]个待发货的订单",
                 'title' => "您有$data[ordernum]个待发货的订单",
-                'type' => 'bulb',
+                'type' => 1,
                 'url' => '/admin/order/list?status=1'
                 'url' => '/admin/order/list?status=1'
             ];
             ];
         }
         }
         if ($data['inventory'] != 0) {
         if ($data['inventory'] != 0) {
             $value[] = [
             $value[] = [
                 'title' => "您有$data[inventory]个商品库存预警",
                 'title' => "您有$data[inventory]个商品库存预警",
-                'type' => 'information',
+                'type' => 2,
                 'url' => '/admin/product/product_list?type=5',
                 'url' => '/admin/product/product_list?type=5',
             ];
             ];
         }
         }
         if ($data['commentnum'] != 0) {
         if ($data['commentnum'] != 0) {
             $value[] = [
             $value[] = [
                 'title' => "您有$data[commentnum]条评论待回复",
                 'title' => "您有$data[commentnum]条评论待回复",
-                'type' => 'bulb',
+                'type' => 3,
                 'url' => '/admin/product/product_reply?is_reply=0'
                 'url' => '/admin/product/product_reply?is_reply=0'
             ];
             ];
         }
         }
         if ($data['reflectnum'] != 0) {
         if ($data['reflectnum'] != 0) {
             $value[] = [
             $value[] = [
                 'title' => "您有$data[reflectnum]个提现申请待审核",
                 'title' => "您有$data[reflectnum]个提现申请待审核",
-                'type' => 'bulb',
+                'type' => 4,
                 'url' => '/admin/finance/user_extract/index?status=0',
                 'url' => '/admin/finance/user_extract/index?status=0',
             ];
             ];
         }
         }

+ 1 - 1
crmeb/app/api/controller/v1/user/UserRechargeController.php

@@ -53,7 +53,7 @@ class UserRechargeController
         $uid = (int)$request->uid();
         $uid = (int)$request->uid();
         $re = $this->services->recharge($uid, $price, $recharId, $type, $from, true);
         $re = $this->services->recharge($uid, $price, $recharId, $type, $from, true);
         if ($re) {
         if ($re) {
-            $payType = $re['pay_type'];
+            $payType = $re['pay_type'] ?? '';
             unset($re['pay_type']);
             unset($re['pay_type']);
             return app('json')->status($payType, 410125, $re);
             return app('json')->status($payType, 410125, $re);
         }
         }