格式化代码
This commit is contained in:
parent
a2bf115e86
commit
4d3f84bcb0
@ -89,7 +89,7 @@ public function update(Request $request, User $user): JsonResponse
|
||||
}
|
||||
|
||||
$trans = $user->reduce($balance, $request->description, true, [
|
||||
'module_id' => $module->id
|
||||
'module_id' => $module->id,
|
||||
]);
|
||||
$module->charge($balance, 'balance', $request->description, [
|
||||
'user_id' => $user->id,
|
||||
@ -104,7 +104,7 @@ public function update(Request $request, User $user): JsonResponse
|
||||
'payment' => 'module_balance',
|
||||
]);
|
||||
$trans = $user->charge($balance, 'module_balance', $request->description, [
|
||||
'module_id' => $module->id
|
||||
'module_id' => $module->id,
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Maintenance;
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\View\View;
|
||||
|
||||
class MaintenanceController extends Controller
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Jenssegers\Mongodb\Eloquent\Model;
|
||||
use Symfony\Component\Uid\Ulid;
|
||||
|
||||
class Transaction extends Model
|
||||
{
|
||||
|
@ -170,7 +170,6 @@ public function startTransfer(self $to, string $amount, string|null $description
|
||||
* @param string $description
|
||||
* @param bool $fail
|
||||
* @param array $options
|
||||
*
|
||||
* @return Transaction
|
||||
*/
|
||||
public function reduce(string|null $amount = '0', string $description = '消费', bool $fail = false, array $options = []): Transaction
|
||||
@ -216,7 +215,6 @@ public function reduce(string|null $amount = '0', string $description = '消费'
|
||||
* @param string $payment
|
||||
* @param string $description
|
||||
* @param array $options
|
||||
*
|
||||
* @return Transaction
|
||||
*/
|
||||
public function charge(string|null $amount = '0', string $payment = 'console', string $description = '充值', array $options = []): Transaction
|
||||
|
Loading…
Reference in New Issue
Block a user