'\app\plugins\scanCodePay\controllers\CallbackController::execute' ]; public function actionTest() { $a = \app\utils\Wechat\B2b\B2bPay::find(297, 'ML20250318094814299906'); // $b = \app\utils\Wechat\B2b\B2bPay::notify($msg); // $c = \app\utils\Wechat\B2b\B2bPay::getretailopenidlist(297); $c = \app\utils\Wechat\B2b\B2bPay::setmchprofitrate(297, 20); var_dump($a, $b, $c);die; } /** * 入口文件 * @throws \Exception */ public function actionIndex() { $store_id = get_params('store_id'); $xml = simplexml_load_string(\Yii::$app->request->getRawBody()); \Yii::error(['WECHAT NOTIFY INDEX <==========> ', \Yii::$app->request->getRawBody()]); return (new WechatNotifyForm())->notifyIndex($store_id, $xml); } private function pluginCallback($message, $orderNoHead) { call_user_func(self::$plugins[$orderNoHead], $message); } }