[help] php Wechat official account can not change the color of the template message.

php Wechat official account sends template messages that can"t change the color. I don"t know why

1. Template message content:

2:

the content of the serialized template message is as follows:
you can test it. Touser needs to be added separately

a:4:{s:11:"template_id";s:43:"cIftnhJkRWw4Z-ajm9ggeDf2u23AYdDwgdNEE4TNTU8";s:3:"url";s:22:"http://www.oicp.net";s:8:"topcolor";s:7:"-sharpFF0000";s:4:"data";a:7:{s:5:"first";a:2:{s:5:"value";s:28:"\n\n";s:5:"color";s:7:"-sharpFF0000";}s:8:"keyword1";a:2:{s:5:"value";s:8:"\n";s:5:"color";s:7:"-sharp173177";}s:8:"keyword2";a:2:{s:5:"value";s:11:"\n";s:5:"color";s:7:"-sharp173177";}s:8:"keyword3";a:2:{s:5:"value";s:10:"20180328\n";s:5:"color";s:7:"-sharp173177";}s:8:"keyword4";a:2:{s:5:"value";s:10:"\n\n";s:5:"color";s:7:"-sharp173177";}s:8:"keyword5";a:2:{s:5:"value";s:0:"";s:5:"color";s:7:"-sharp173177";}s:6:"remark";a:2:{s:5:"value";s:15:">>>";s:5:"color";s:7:"-sharpFF0000";}}}
Php
Feb.27,2021

Wechat's problem, mine has not been able to change the color


this is how I assembled the message content of the template

$data = '{
           "touser":"' . $open_id . '",
           "url":"*************",
           "template_id":"iESo6q4cZ3XRiYdcOSoA6EDhYn4HGYaLsHpKDaXo83M",
           "data":{
                   "first": {
                        "value":","
                   },
                   "keyword1": {
                        "value":"",
                        "color":"-sharpFF0000"
                   },
                   "keyword2":{
                        "value":"50",
                        "color":"-sharpFF7F24"
                   },
                   "remark":{
                        "value":"~"
                   }
           }
           }';

the message style of the template is as follows:

I don't know if I can help you ~


is the question of odd and double quotation marks very confusing, ha

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8102d-b21.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8102d-b21.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?