33 lines
792 B
PHP
33 lines
792 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use App\Services\DistributeService;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Tests\TestCase;
|
|
use App\Models\Order;
|
|
|
|
class ExampleTest extends TestCase
|
|
{
|
|
/**
|
|
* A basic test example.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function test_example()
|
|
{
|
|
// $order = Order::where('sn', '20230813185220618108')->first();
|
|
// try {
|
|
// DB::beginTransaction();
|
|
// (new DistributeService())->wechatShare($order);
|
|
// $order->update(['profit_paid' => now()]);
|
|
// DB::commit();
|
|
// } catch (\Exception $e) {
|
|
// DB::rollBack();
|
|
// report($e);
|
|
// }
|
|
dump(route('wxpay.paid_notify', ['payment' => 'default']));
|
|
$this->assertTrue(true);
|
|
}
|
|
}
|