修改字符串判断
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Models\Welfare;
|
||||
use App\Models\WelfareOrder;
|
||||
use App\Models\WelfarePayment;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Str;
|
||||
use XuanChen\WoUnicom\Action\Init;
|
||||
use XuanChen\WoUnicom\Action\Order;
|
||||
use XuanChen\WoUnicom\Action\Query;
|
||||
@@ -104,7 +105,7 @@ class WoUnicom
|
||||
if ($res === true) {
|
||||
|
||||
//福利订单
|
||||
if (str_contains($data['orderid'], 'WEAL')) {
|
||||
if (Str::is('WEAL*', $data['orderid'])) {
|
||||
$order = WelfareOrder::where('orderid', $data['orderid'])->first();
|
||||
if ($order && $order->status == 'UNPAY') {
|
||||
$payment = $order->payment;
|
||||
|
||||
Reference in New Issue
Block a user