8 changed files with 91 additions and 83 deletions
-
12app/Admin/Common/Auth.php
-
41app/Admin/Common/FinancialRecord.php
-
2app/Admin/Controllers/LanzuCsInfoController.php
-
43app/Admin/Controllers/LanzuMmInfoController.php
-
15app/Admin/Controllers/LanzuMmWithdrawController.php
-
44app/Admin/Controllers/LanzuMpInfoController.php
-
11app/Admin/Controllers/LanzuMpWithdrawController.php
-
6app/Models/MpBalance.php
@ -0,0 +1,41 @@ |
|||
<?php |
|||
|
|||
|
|||
namespace App\Admin\Common; |
|||
|
|||
|
|||
use Dcat\Admin\Controllers\AdminController; |
|||
|
|||
class FinancialRecord extends AdminController |
|||
{ |
|||
/** |
|||
* @param $form |
|||
* @param $adminUserId |
|||
* @param $userType |
|||
* @param $mType |
|||
* @param $desc |
|||
* @param $comment |
|||
*/ |
|||
public static function addFinancialRecord($adminUserId,$userType,$money,$mType,$desc,$comment) |
|||
{ |
|||
//添加流水记录
|
|||
$model = \App\Models\FinancialRecord::getFinancialRecordModel($adminUserId); |
|||
$model->user_id = $adminUserId; |
|||
$model->user_type = $userType; |
|||
$model->money = $money; |
|||
$model->money_type = $mType; |
|||
$model->desc = $desc; |
|||
$model->comment = $comment; |
|||
$model->save(); |
|||
|
|||
//添加公司流水
|
|||
$model = new \App\Models\LanzuFinancialRecord(); |
|||
$model->user_id = -1; |
|||
$model->user_type = -1; |
|||
$model->money = $money; |
|||
$model->money_type = $mType; |
|||
$model->desc = $desc; |
|||
$model->comment = $comment; |
|||
$model->save(); |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue