<commit_before><?php

declare(strict_types=1);

/*
 * +----------------------------------------------------------------------+
 * |                          ThinkSNS Plus                               |
 * +----------------------------------------------------------------------+
 * | Copyright (c) 2017 <NAME>Xiang Technology Co., Ltd.     |
 * +----------------------------------------------------------------------+
 * | This source file is subject to version 2.0 of the Apache license,    |
 * | that is bundled with this package in the file LICENSE, and is        |
 * | available through the world-wide-web at the following url:           |
 * | http://www.apache.org/licenses/LICENSE-2.0.html                      |
 * +----------------------------------------------------------------------+
 * | Author: <NAME> <<EMAIL>>                          |
 * | Homepage: www.thinksns.com                                           |
 * +----------------------------------------------------------------------+
 */

namespace Zhiyi\Plus\Http\Controllers\APIs\V2;

use Zhiyi\Plus\Http\Requests\API2\StoreCurrencyCash;
use Zhiyi\Plus\Packages\Currency\Processes\Cash as CashProcess;

class CurrencyCashController extends Controller
{
    /**
     * 发起提现订单.
     *
     * @param StoreCurrencyCash $request
     * @return mixed
     * @author BS <<EMAIL>>
     */
    public function store(StoreCurrencyCash $request)
    {
        $user = $request->user();
        $amount = $request->input('amount');

        $cash = new CashProcess();

        if (($result = $cash->createOrder($user->id, (int) $amount) !== false)) {
            return response()->json(['message' => ['操作成功']], 201);
        }

        return response()->json(['message' => ['操作失败']], 500);
    }
}<commit_msg>chore: ( zhiyicx/thinksns-plus-ios#1895 )修改提交积分提取申请的成功提示语<commit_after><?php

declare(strict_types=1);

/*
 * +----------------------------------------------------------------------+
 * |                          ThinkSNS Plus                               |
 * +----------------------------------------------------------------------+
 * | Copyright (c) 2017 <NAME> Technology Co., Ltd.     |
 * +----------------------------------------------------------------------+
 * | This source file is subject to version 2.0 of the Apache license,    |
 * | that is bundled with this package in the file LICENSE, and is        |
 * | available through the world-wide-web at the following url:           |
 * | http://www.apache.org/licenses/LICENSE-2.0.html                      |
 * +----------------------------------------------------------------------+
 * | Author: <NAME> <<EMAIL>>                          |
 * | Homepage: www.thinksns.com                                           |
 * +----------------------------------------------------------------------+
 */

namespace Zhiyi\Plus\Http\Controllers\APIs\V2;

use Zhiyi\Plus\Http\Requests\API2\StoreCurrencyCash;
use Zhiyi\Plus\Packages\Currency\Processes\Cash as CashProcess;

class CurrencyCashController extends Controller
{
    /**
     * 发起提现订单.
     *
     * @param StoreCurrencyCash $request
     * @return mixed
     * @author BS <<EMAIL>>
     */
    public function store(StoreCurrencyCash $request)
    {
        $user = $request->user();
        $amount = $request->input('amount');

        $cash = new CashProcess();

        if (($result = $cash->createOrder($user->id, (int) $amount) !== false)) {
            return response()->json(['message' => ['积分提取申请已提交，请等待审核']], 201);
        }

        return response()->json(['message' => ['操作失败']], 500);
    }
}
{'fraction_non_alphanumeric': 0.3140633685380767, 'fraction_numerical': 0.010561423012784881, 'mean_word_length': 1.14098750743605, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4819763', 'n_tokens_mistral': 953, 'n_tokens_neox': 938, 'n_words': 192}