Use Weixin client 6.3.27 version and above.
Download Mini Program sample source code (version 20170111)