| xqd
@@ -1718,15 +1718,15 @@ class AlbumController extends Controller
|
|
|
$content = '有用户分享了您的画册';
|
|
|
break;
|
|
|
}
|
|
|
- $weChatApp = AlbumManufacturerModel::where('store_id', $storeid)->first();
|
|
|
+ $weChatApp = AlbumManufacturerModel::where('store_id', $storeid)->first();\Log::info('2221');
|
|
|
$config = [
|
|
|
'app_id' => $weChatApp->G_app_id,
|
|
|
'secret' => $weChatApp->G_app_secret,
|
|
|
'response_type' => 'array',
|
|
|
- ];
|
|
|
+ ];\Log::info('2224');
|
|
|
$app = Factory::officialAccount($config);
|
|
|
- $text = new Text($content);
|
|
|
- $res_msg = $app->customer_service->message($text)->to($g_open_id)->send();\Log::info($res_msg);\Log::info('222');
|
|
|
+ $text = new Text($content);\Log::info('2223');
|
|
|
+ $res_msg = $app->customer_service->message($text)->to($g_open_id)->send();\Log::info($res_msg);
|
|
|
if($user&&$formId){
|
|
|
$this->wechat_app = AlbumManufacturerModel::where('store_id',$storeid)->first();
|
|
|
$config = [
|