Compare commits
No commits in common. "96411f222578f0ecee22a161bcd8f766fbb065eb" and "479fab6bfa7b77010087ad4d296518f126ebf920" have entirely different histories.
96411f2225
...
479fab6bfa
|
|
@ -9,7 +9,6 @@ use Dcat\Admin\Form;
|
|||
use Dcat\Admin\Grid;
|
||||
use Dcat\Admin\Http\Controllers\AdminController;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
class OrderFakeController extends AdminController
|
||||
{
|
||||
|
|
@ -54,9 +53,7 @@ class OrderFakeController extends AdminController
|
|||
});
|
||||
}, '发单人名称');
|
||||
});
|
||||
$grid->disableEditButton();
|
||||
$grid->disableDeleteButton();
|
||||
$grid->disableActions();
|
||||
|
||||
$grid->disableViewButton();
|
||||
$grid->scrollbarX();
|
||||
});
|
||||
|
|
@ -172,9 +169,6 @@ JS
|
|||
$form->created_by = Admin::user()->id;
|
||||
}
|
||||
});
|
||||
$form->saved(function (Form $form) {
|
||||
Order::where('order_sn', $form->order_sn)->increment('gendan_num', $form->fake_count);
|
||||
});
|
||||
|
||||
$form->footer(function ($footer) {
|
||||
$footer->disableViewCheck();
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ use App\Model\Customer\CustomerFollow;
|
|||
use App\Model\Feedback;
|
||||
use App\Model\Material;
|
||||
use App\Model\Order;
|
||||
use App\Model\OrderFake;
|
||||
use App\Model\Seller\Shop;
|
||||
use App\Service\CustomerService;
|
||||
use App\Service\MaterialService;
|
||||
|
|
@ -779,16 +778,6 @@ class CustomerController extends BaseController
|
|||
|
||||
$orders = $query->orderBy('id', 'desc')
|
||||
->paging($size);
|
||||
|
||||
foreach ($orders as $item) {
|
||||
$fake = OrderFake::where('order_sn', $item->order_sn)->first();
|
||||
if ($fake) {
|
||||
$item->gendan_num_origin = $item->gendan_num;
|
||||
$item->gendan_num += $fake->fake_count;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return $this->jsonSuccess($orders);
|
||||
}
|
||||
|
||||
|
|
@ -840,7 +829,7 @@ class CustomerController extends BaseController
|
|||
'lottery:id,name',
|
||||
'pOrder:id,pid,lottery_state,lottery_prize,lottery_tax_prize,lottery_send_prize'
|
||||
])->select([
|
||||
'id', 'pid','type', 'play_type', 'lottery_state', 'lottery_prize','lottery_tax_prize','lottery_send_prize', 'lottery_id', 'pay_at','order_sn','money','union_piece_total', 'union_piece_buy','union_piece_money', 'union_money', 'union_piece_self','union_piece_keep','revoke_message','revoke_at'
|
||||
'id', 'pid','type', 'play_type', 'lottery_state', 'lottery_prize','lottery_tax_prize','lottery_send_prize', 'lottery_id', 'pay_at','order_sn','money','union_piece_total', 'union_piece_buy','union_piece_money', 'union_money', 'union_piece_self','union_piece_keep'
|
||||
])
|
||||
->where('customer_id', $customer->id)
|
||||
->where('pay_state', PayState::SUCCESS);
|
||||
|
|
|
|||
|
|
@ -429,12 +429,6 @@ class Order extends BaseModel
|
|||
->where('pay_state', PayState::SUCCESS)
|
||||
->whereIn('lottery_state', $this->gendanLotteryState())
|
||||
->count();
|
||||
if ($this->created_date <= '20260704') {
|
||||
$fake = OrderFake::where('order_sn', $this->order_sn)->first();
|
||||
if ($fake) {
|
||||
$gendanCount += $fake->fake_count;
|
||||
}
|
||||
}
|
||||
$info['count_gendan'] = $gendanCount;
|
||||
$info['count_default_show'] = 10;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ use App\Model\Seller\Seller;
|
|||
use App\Utils\Helps;
|
||||
use App\Utils\ThrowException;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
|
|
@ -437,19 +436,6 @@ class JclqService implements IJingcai
|
|||
*/
|
||||
public function validZuHe($allowPlanNum, $data, $combinationLen=2)
|
||||
{
|
||||
|
||||
$inputData = [];
|
||||
foreach ($data as $id => $item) {
|
||||
if (count($item) == 1) {
|
||||
$itemValues = array_values($item);
|
||||
if (isset($itemValues[0]) && count($itemValues[0]) == 1) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$inputData[$id] = $item;
|
||||
}
|
||||
$data = $inputData;
|
||||
|
||||
$oddsMatch = $this->generateCombinationInput($data);
|
||||
$zuhes = Helps::getCombinationData($oddsMatch, $combinationLen);
|
||||
if (count($zuhes) > $allowPlanNum) {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ use App\Model\Zq\JczqResult;
|
|||
use App\Utils\Helps;
|
||||
use App\Utils\ThrowException;
|
||||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
|
|
@ -1007,19 +1006,6 @@ class JczqService implements IJingcai
|
|||
*/
|
||||
public function validZuHe($allowPlanNum, $data, $combinationLen=2)
|
||||
{
|
||||
|
||||
$inputData = [];
|
||||
foreach ($data as $id => $item) {
|
||||
if (count($item) == 1) {
|
||||
$itemValues = array_values($item);
|
||||
if (isset($itemValues[0]) && count($itemValues[0]) == 1) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
$inputData[$id] = $item;
|
||||
}
|
||||
$data = $inputData;
|
||||
|
||||
$oddsMatch = $this->generateCombinationInput($data);
|
||||
$zuhes = Helps::getCombinationData($oddsMatch, $combinationLen);
|
||||
if (count($zuhes) > $allowPlanNum) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue