| xqd
@@ -13,18 +13,20 @@ class TestController extends Controller
|
|
|
{
|
|
|
public function index(Request $request)
|
|
|
{
|
|
|
- dd(User::where('phone', '13438082119')->first());
|
|
|
+// dd(User::where('phone', '13438082119')->first());
|
|
|
$app = app('wechat.mini_program');
|
|
|
- $app->template_message->send([
|
|
|
- 'touser' => 'user-openid',
|
|
|
- 'template_id' => 'template-id',
|
|
|
+ $res = $app->template_message->send([
|
|
|
+ 'touser' => 'oi4-45JF9_U6EuttPyvDjpV_yuC0',
|
|
|
+ 'template_id' => 'UxFg6zf47Gmha84hNzbdTJ3K0UHzcXNMPUbJQj-ivA8',
|
|
|
'page' => 'index',
|
|
|
- 'form_id' => 'form-id',
|
|
|
'data' => [
|
|
|
- 'keyword1' => 'VALUE',
|
|
|
- 'keyword2' => 'VALUE2',
|
|
|
- // ...
|
|
|
+ 'character_string13' => '编号',
|
|
|
+ 'thing6' => '内容',
|
|
|
+ 'phrase12' => '状态',
|
|
|
+ 'thing22' => '工区',
|
|
|
+ 'thing15' => '备注',
|
|
|
],
|
|
|
]);
|
|
|
+ dd($res);
|
|
|
}
|
|
|
}
|