| xqd
@@ -13,9 +13,18 @@ class TestController extends Controller
|
|
|
{
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
- dd( WorkPoint::find(22)->project);
|
|
|
-// return view('admin.test.index');
|
|
|
+ dd(User::where('phone', '13438082119')->first());
|
|
|
+ $app = app('wechat.mini_program');
|
|
|
+ $app->template_message->send([
|
|
|
+ 'touser' => 'user-openid',
|
|
|
+ 'template_id' => 'template-id',
|
|
|
+ 'page' => 'index',
|
|
|
+ 'form_id' => 'form-id',
|
|
|
+ 'data' => [
|
|
|
+ 'keyword1' => 'VALUE',
|
|
|
+ 'keyword2' => 'VALUE2',
|
|
|
+ // ...
|
|
|
+ ],
|
|
|
+ ]);
|
|
|
}
|
|
|
}
|