$e[0]]); if (empty($ex)) { echo "{$e[0]} \n"; } $inserts[] = [ 'name' => $e[0], 'code' => $e[1], 'type' => 1, 'express_id' => !empty($ex->id) ? $ex->id : 0, ]; } ExpressModel::find()->createCommand()->batchInsert(ExpressModel::tableName(), array_keys($inserts[0]), $inserts)->execute(); } public function actionRefund() { // GoodsEditListener::async_handle(['goods_id' => 15760, 'type' => 'destroy']); // OrderRefundFinishListener::async_handle(['mall_id' => 1, 'id' => 622]); // OrderPaidListener::async_handle(['mall_id' => 1, 'id' => 18023]); // \addons\QiJuhe\common\listeners\OrderRefundBuyerDeliveryListener::async_handle(['mall_id' => 16, 'id' => 743]); // (new \addons\QiJuhe\common\service\RefundService([]))->thirdCancel('s20240806124544596735', 244); // {"order_item_id":25706,"third_order_sn":"s20250117110142643745","after_sales_id":1179,"message_type":"after_sales.complete","member_sign":"6ead81e2e999b24fcb6faf47e6cf2273"} try { (new \addons\QiJuhe\common\service\RefundService(['mall_id' => 16]))->after_sales_complete('s20250117110142643745', 1179); (new \addons\QiJuhe\common\service\RefundService(['mall_id' => 26]))->after_sales_receiving('s20250220221501951657', 1437); (new \addons\QiJuhe\common\service\RefundService(['mall_id' => 26]))->after_sales_pass('s20250220221501951657', 1437, 29514); } catch (\Exception $e) { echo $e->getMessage(); echo $e->getFile(); echo $e->getLine(); } } }